Planeshift
|
This object represents recipes for the tribe AI. More...
#include <recipe.h>
Classes | |
struct | Requirement |
Data structure to keep information about requirements. More... | |
Public Types | |
enum | RequirementType { REQ_TYPE_BUILDING, REQ_TYPE_ITEM, REQ_TYPE_KNOWLEDGE, REQ_TYPE_MEMORY, REQ_TYPE_RECIPE, REQ_TYPE_RESOURCE, REQ_TYPE_TRADER, REQ_TYPE_TRIBESMAN } |
Types of requirements. More... | |
Public Member Functions | |
void | Dump () |
Dump all details about the recipe. More... | |
void | DumpAlgorithm () |
Dumps algorithm to console. More... | |
void | DumpRequirements () |
Dumps requirements to console. More... | |
csStringArray | GetAlgorithm () |
Getter for Recipe's Algorithm. More... | |
int | GetID () |
Getter for Recipe's ID. More... | |
csString | GetName () |
Getter for Recipe's Name. More... | |
csArray< Requirement > | GetRequirements () |
Getter for Requirements. More... | |
bool | IsPersistent () |
Getter for Persistance. More... | |
bool | Load (iResultRow &row) |
Load a recipe. More... | |
Recipe () | |
Construct a Recipe object. More... | |
virtual | ~Recipe () |
Destruct a Recipe object. More... | |
Static Public Attributes | |
static const char * | RequirementTypeString [] |
Recipe::Recipe | ( | ) |
Construct a Recipe object.
|
inlinevirtual |
void Recipe::Dump | ( | ) |
Dump all details about the recipe.
void Recipe::DumpAlgorithm | ( | ) |
Dumps algorithm to console.
void Recipe::DumpRequirements | ( | ) |
Dumps requirements to console.
|
inline |
|
inline |
|
inline |
|
inline |
bool Recipe::Load | ( | iResultRow & | row | ) |
Load a recipe.