26 #include <csutil/array.h> 27 #include <csutil/stringarray.h> 28 #include <csutil/csstring.h> 91 bool Load(iResultRow &row);
137 csArray<Requirement> requirements;
138 csStringArray algorithm;
192 csString Preparse(csString
function,
Tribe* tribe);
206 bool AddTribe(
Tribe* tribe);
219 void CreateGlobalNPCType(
Tribe* tribe);
232 bool ParseFunction(csString
function,
Tribe* tribe, csArray<NPC*> &npcs,
Recipe*
recipe);
259 Recipe* GetRecipe(
int recipeID);
262 Recipe* GetRecipe(csString recipesName);
269 void DumpError(csString recipeName, csString functionName,
int expectedArgs,
int receivedArgs);
271 csArray<Tribe*> tribes;
272 csArray<TribeData> tribeData;
273 csArray<Recipe*> recipes;
psNPCClient * npcclient
Global connection to the NPC Client.
csString quantity
Number needed.
csString buffer
Use this buffer to store name for recipe to use later.
RequirementType
Types of requirements.
void DumpAlgorithm()
Dumps algorithm to console.
csStringArray npcOperations
More than one operation can be applied for a function.
csString GetName()
Getter for Recipe's Name.
Recipe()
Construct a Recipe object.
Keeps details of all tribes enrolled in the manager.
Keeps details about the matches between script actions and NPC Operations.
void Dump()
Dump all details about the recipe.
virtual ~Recipe()
Destruct a Recipe object.
Class that represents the Recipe Manager of the game.
void DumpRequirements()
Dumps requirements to console.
bool IsPersistent()
Getter for Persistance.
bool Load(iResultRow &row)
Load a recipe.
csString recipe
If requirement isn't meet use this recipe to get it.
static const char * RequirementTypeString[]
csString global
Holds the parent NPCType available for the whole tribe.
The main NPC Client class holding references to important superclient objects.
int currentStep
Keeps the step the tribe is currently at in the recipe.
csStringArray GetAlgorithm()
Getter for Recipe's Algorithm.
Data structure to keep information about requirements.
csString reqText
The unparsed requirment function for this.
csArray< Requirement > GetRequirements()
Getter for Requirements.
int GetID()
Getter for Recipe's ID.
Recipe * tribalRecipe
Recipe keeping tribe information.
This class represents a leaf in a recipe tree.
csString name
Name of the requirement.
This object represents recipes for the tribe AI.
This class handles all queueing and invoking of timed events, such as combat, spells, NPC dialog responses, range weapons, or NPC respawning.
RequirementType type
Type. Can be workforce, resource, item, knowledge.
Holds list of tribe members, position of tribe home Keeps resources and handles tribe perceptions...