|
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. | |
| void | DumpAlgorithm () |
| Dumps algorithm to console. | |
| void | DumpRequirements () |
| Dumps requirements to console. | |
| csStringArray | GetAlgorithm () |
| Getter for Recipe's Algorithm. | |
| int | GetID () |
| Getter for Recipe's ID. | |
| csString | GetName () |
| Getter for Recipe's Name. | |
| csArray< Requirement > | GetRequirements () |
| Getter for Requirements. | |
| bool | IsPersistent () |
| Getter for Persistance. | |
| bool | Load (iResultRow &row) |
| Load a recipe. | |
| Recipe () | |
| Construct a Recipe object. | |
| virtual | ~Recipe () |
| Destruct a Recipe object. | |
Static Public Attributes | |
| static const char * | RequirementTypeString [] |
| Recipe::Recipe | ( | ) |
Construct a Recipe object.
| virtual Recipe::~Recipe | ( | ) | [inline, virtual] |
| void Recipe::Dump | ( | ) |
Dump all details about the recipe.
| void Recipe::DumpAlgorithm | ( | ) |
Dumps algorithm to console.
| void Recipe::DumpRequirements | ( | ) |
Dumps requirements to console.
| csStringArray Recipe::GetAlgorithm | ( | ) | [inline] |
| csString Recipe::GetName | ( | ) | [inline] |
| csArray<Requirement> Recipe::GetRequirements | ( | ) | [inline] |
| bool Recipe::IsPersistent | ( | ) | [inline] |
| bool Recipe::Load | ( | iResultRow & | row | ) |
Load a recipe.
const char* Recipe::RequirementTypeString[] [static] |
1.7.3