#include <craftdef.h>
Inheritance diagram for CraftDefinitionCooking:
Collaboration diagram for CraftDefinitionCooking:Public Member Functions | |
| CraftDefinitionCooking ()=delete | |
| CraftDefinitionCooking (const std::string &output_, const std::string &recipe_, float cooktime_, const CraftReplacements &replacements_) | |
| virtual | ~CraftDefinitionCooking ()=default |
| virtual std::string | getName () const |
| virtual bool | check (const CraftInput &input, IGameDef *gamedef) const |
| virtual CraftOutput | getOutput (const CraftInput &input, IGameDef *gamedef) const |
| virtual CraftInput | getInput (const CraftOutput &output, IGameDef *gamedef) const |
| virtual void | decrementInput (CraftInput &input, std::vector< ItemStack > &output_replacements, IGameDef *gamedef) const |
| virtual u64 | getHash (CraftHashType type) const |
| virtual void | initHash (IGameDef *gamedef) |
| virtual std::string | dump () const |
Public Member Functions inherited from CraftDefinition | |
| CraftDefinition ()=default | |
| virtual | ~CraftDefinition ()=default |
| RecipePriority | getPriority () const |
| CraftHashType | getHashType () const |
Private Attributes | |
| std::string | output |
| std::string | recipe |
| std::string | recipe_name |
| bool | hash_inited = false |
| float | cooktime |
| CraftReplacements | replacements |
Additional Inherited Members | |
Public Types inherited from CraftDefinition | |
| enum | RecipePriority { PRIORITY_NO_RECIPE , PRIORITY_TOOLREPAIR , PRIORITY_SHAPELESS_AND_GROUPS , PRIORITY_SHAPELESS , PRIORITY_SHAPED_AND_GROUPS , PRIORITY_SHAPED } |
Protected Attributes inherited from CraftDefinition | |
| CraftHashType | hash_type |
| RecipePriority | priority |
|
delete |
| CraftDefinitionCooking::CraftDefinitionCooking | ( | const std::string & | output_, |
| const std::string & | recipe_, | ||
| float | cooktime_, | ||
| const CraftReplacements & | replacements_ ) |
References isGroupRecipeStr(), CraftDefinition::priority, CraftDefinition::PRIORITY_SHAPELESS, CraftDefinition::PRIORITY_SHAPELESS_AND_GROUPS, and recipe.
Here is the call graph for this function:
|
virtualdefault |
|
virtual |
Implements CraftDefinition.
References CRAFT_METHOD_COOKING, craftGetItemName(), IGameDef::idef(), inputItemMatchesRecipe(), CraftInput::items, CraftInput::method, and recipe.
Here is the call graph for this function:
|
virtual |
Implements CraftDefinition.
References craftDecrementOrReplaceInput(), and replacements.
Here is the call graph for this function:
|
virtual |
Implements CraftDefinition.
References cooktime, CraftReplacements::dump(), output, recipe, and replacements.
Here is the call graph for this function:
|
virtual |
Implements CraftDefinition.
References CRAFT_HASH_TYPE_COUNT, CRAFT_HASH_TYPE_ITEM_NAMES, getHashForString(), and recipe_name.
Here is the call graph for this function:
|
virtual |
Implements CraftDefinition.
References cooktime, CRAFT_METHOD_COOKING, craftGetItems(), and recipe.
Here is the call graph for this function:
|
virtual |
Implements CraftDefinition.
|
virtual |
Implements CraftDefinition.
|
virtual |
Implements CraftDefinition.
References CRAFT_HASH_TYPE_COUNT, CRAFT_HASH_TYPE_ITEM_NAMES, craftGetItemName(), hash_inited, CraftDefinition::hash_type, isGroupRecipeStr(), recipe, and recipe_name.
Here is the call graph for this function:
|
private |
Referenced by dump(), getInput(), and getOutput().
|
private |
Referenced by initHash().
|
private |
Referenced by dump(), and getOutput().
|
private |
Referenced by CraftDefinitionCooking(), check(), dump(), getInput(), and initHash().
|
private |
Referenced by getHash(), and initHash().
|
private |
Referenced by decrementInput(), and dump().