#include <craftdef.h>
|
| CraftDefinitionShapeless ()=delete |
|
| CraftDefinitionShapeless (const std::string &output_, const std::vector< std::string > &recipe_, const CraftReplacements &replacements_) |
|
virtual | ~CraftDefinitionShapeless ()=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 |
|
| CraftDefinition ()=default |
|
virtual | ~CraftDefinition ()=default |
|
virtual std::string | getName () const =0 |
|
virtual bool | check (const CraftInput &input, IGameDef *gamedef) const =0 |
|
RecipePriority | getPriority () const |
|
virtual CraftOutput | getOutput (const CraftInput &input, IGameDef *gamedef) const =0 |
|
virtual CraftInput | getInput (const CraftOutput &output, IGameDef *gamedef) const =0 |
|
virtual void | decrementInput (CraftInput &input, std::vector< ItemStack > &output_replacements, IGameDef *gamedef) const =0 |
|
CraftHashType | getHashType () const |
|
virtual u64 | getHash (CraftHashType type) const =0 |
|
virtual void | initHash (IGameDef *gamedef)=0 |
|
virtual std::string | dump () const =0 |
|
◆ CraftDefinitionShapeless() [1/2]
CraftDefinitionShapeless::CraftDefinitionShapeless |
( |
| ) |
|
|
delete |
◆ CraftDefinitionShapeless() [2/2]
CraftDefinitionShapeless::CraftDefinitionShapeless |
( |
const std::string & |
output_, |
|
|
const std::vector< std::string > & |
recipe_, |
|
|
const CraftReplacements & |
replacements_ |
|
) |
| |
◆ ~CraftDefinitionShapeless()
virtual CraftDefinitionShapeless::~CraftDefinitionShapeless |
( |
| ) |
|
|
virtualdefault |
◆ check()
bool CraftDefinitionShapeless::check |
( |
const CraftInput & |
input, |
|
|
IGameDef * |
gamedef |
|
) |
| const |
|
virtual |
Implements CraftDefinition.
References CRAFT_METHOD_NORMAL, craftGetItemNames(), errorstream, hash_inited, hopcroft_karp_can_match_all(), IGameDef::idef(), inputItemMatchesRecipe(), CraftInput::items, CraftInput::method, recipe, recipe_names, and SHAPELESS_GROUPS_MAX.
◆ decrementInput()
void CraftDefinitionShapeless::decrementInput |
( |
CraftInput & |
input, |
|
|
std::vector< ItemStack > & |
output_replacements, |
|
|
IGameDef * |
gamedef |
|
) |
| const |
|
virtual |
◆ dump()
std::string CraftDefinitionShapeless::dump |
( |
| ) |
const |
|
virtual |
◆ getHash()
u64 CraftDefinitionShapeless::getHash |
( |
CraftHashType |
type | ) |
const |
|
virtual |
◆ getInput()
◆ getName()
std::string CraftDefinitionShapeless::getName |
( |
| ) |
const |
|
virtual |
◆ getOutput()
◆ initHash()
void CraftDefinitionShapeless::initHash |
( |
IGameDef * |
gamedef | ) |
|
|
virtual |
◆ hash_inited
bool CraftDefinitionShapeless::hash_inited = false |
|
private |
◆ output
std::string CraftDefinitionShapeless::output |
|
private |
◆ recipe
std::vector<std::string> CraftDefinitionShapeless::recipe |
|
private |
◆ recipe_names
std::vector<std::string> CraftDefinitionShapeless::recipe_names |
|
private |
◆ replacements
The documentation for this class was generated from the following files: