DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
RecipeBase Class Reference

#include <RecipeBase.h>

Inheritance diagram for RecipeBase:
RecipeTest RecipeTest2 RecipeTest3 RecipeTest4

Private Member Functions

void  RecipeBase ()
 
void  ~RecipeBase ()
 
void  ApplyModifications (Link< EntityAI > item1, Link< EntityAI > item2, Link< Object > result)
 
bool  CheckIngredientMatch (Link< EntityAI > item1, Link< EntityAI > item2)
 
bool  CheckRecipe (Link< EntityAI > item1, Link< EntityAI > item2)
 
bool  CanDo (Link< EntityAI > item1, Link< EntityAI > item2)
 
void  Do (Link< EntityAI > item1, Link< EntityAI > item2, Man player, Link< Object > result, array< Link< Object >> results)
 
void  PerformRecipe (Link< EntityAI > item1, Link< EntityAI > item2, Man player)
 
void  CleanItems (array< Link< Object >> results)
 
Link< Object SpawnResult (Man player)
 
array< Link< Object > >  SpawnItems (Man player)
 
void  AddItemToCreate (string item)
 
int  GetID ()
 
void  SetID (int id)
 

Private Attributes

autoptr array< string >  m_Ingredient1
 
autoptr array< string >  m_Ingredient2
 
array< string >  m_Ingredients [CRF_NUMBER_OF_INGREDIENTS]
 
autoptr array< Link< EntityAI > >  m_IngredientsSorted
 
autoptr array< string >  m_ItemsToCreate
 
string  m_Result
 
int  m_ID
 
float  m_Ingredient1AddDamage = 0
 
float  m_Ingredient1AddQuantity = 0
 
bool  m_Ingredient1Destroy = 0
 
float  m_Ingredient2AddDamage = 0
 
float  m_Ingredient2AddQuantity = 0
 
bool  m_Ingredient2Destroy = 0
 
int  m_ResultSetFullQuantity = -1
 
float  m_ResultSetQuantity = -1
 
float  m_ResultSetHealth = -1
 

Constructor & Destructor Documentation

void RecipeBase::RecipeBase ( )
private
void RecipeBase::~RecipeBase ( )
private

Member Function Documentation

void RecipeBase::ApplyModifications ( Link< EntityAI item1,
Link< EntityAI item2,
Link< Object result 
)
private
bool RecipeBase::CheckIngredientMatch ( Link< EntityAI item1,
Link< EntityAI item2 
)
private
bool RecipeBase::CheckRecipe ( Link< EntityAI item1,
Link< EntityAI item2 
)
private
bool RecipeBase::CanDo ( Link< EntityAI item1,
Link< EntityAI item2 
)
private

Referenced by CheckRecipe().

void RecipeBase::Do ( Link< EntityAI item1,
Link< EntityAI item2,
Man  player,
Link< Object result,
array< Link< Object >>  results 
)
private

References Debug::Log(), m_ID, and ToString().

Referenced by PerformRecipe().

void RecipeBase::PerformRecipe ( Link< EntityAI item1,
Link< EntityAI item2,
Man  player 
)
private
void RecipeBase::CleanItems ( array< Link< Object >>  results )
private

Referenced by PerformRecipe().

Link< Object > RecipeBase::SpawnResult ( Man  player )
private
array< Link< Object > > RecipeBase::SpawnItems ( Man  player )
private
void RecipeBase::AddItemToCreate ( string  item )
private

References m_ItemsToCreate.

int RecipeBase::GetID ( )
private

References m_ID.

void RecipeBase::SetID ( int  id )
private

References m_ID.

Referenced by ModuleRecipes::RegisterRecipe().

Member Data Documentation

autoptr array<string> RecipeBase::m_Ingredient1
private
autoptr array<string> RecipeBase::m_Ingredient2
private
array<string> RecipeBase::m_Ingredients[CRF_NUMBER_OF_INGREDIENTS]
private

Referenced by CheckIngredientMatch(), and RecipeBase().

autoptr array<Link<EntityAI> > RecipeBase::m_IngredientsSorted
private
autoptr array<string> RecipeBase::m_ItemsToCreate
private
string RecipeBase::m_Result
private
int RecipeBase::m_ID
private

Referenced by Do(), GetID(), and SetID().

float RecipeBase::m_Ingredient1AddDamage = 0
private
float RecipeBase::m_Ingredient1AddQuantity = 0
private
bool RecipeBase::m_Ingredient1Destroy = 0
private
float RecipeBase::m_Ingredient2AddDamage = 0
private
float RecipeBase::m_Ingredient2AddQuantity = 0
private
bool RecipeBase::m_Ingredient2Destroy = 0
private
int RecipeBase::m_ResultSetFullQuantity = -1
private

Referenced by ApplyModifications().

float RecipeBase::m_ResultSetQuantity = -1
private
float RecipeBase::m_ResultSetHealth = -1
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)