Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | List of all members
cCraftingRecipe Class Reference

#include <CraftingRecipes.h>

Collaboration diagram for cCraftingRecipe:
Collaboration graph
[legend]

Public Member Functions

 cCraftingRecipe (const cCraftingGrid &a_CraftingGrid)
 
void Clear (void)
 
void ConsumeIngredients (cCraftingGrid &a_CraftingGrid)
 Consumes ingredients from the crafting grid specified. More...
 
void Dump (void)
 Dumps the entire recipe using LOGD() More...
 
cItemGetIngredient (int x, int y) const
 
int GetIngredientsHeight (void) const
 
int GetIngredientsWidth (void) const
 
const cItemGetResult (void) const
 
void SetIngredient (int x, int y, const cItem &a_Item)
 
void SetIngredient (int x, int y, ENUM_ITEM_TYPE a_ItemType, char a_ItemCount, short a_ItemHealth)
 
void SetResult (const cItem &a_Item)
 
void SetResult (ENUM_ITEM_TYPE a_ItemType, char a_ItemCount, short a_ItemHealth)
 

Protected Attributes

cCraftingGrid m_Ingredients
 
cItem m_Result
 

Detailed Description

Definition at line 60 of file CraftingRecipes.h.

Constructor & Destructor Documentation

◆ cCraftingRecipe()

cCraftingRecipe::cCraftingRecipe ( const cCraftingGrid a_CraftingGrid)

Definition at line 213 of file CraftingRecipes.cpp.

Member Function Documentation

◆ Clear()

void cCraftingRecipe::Clear ( void  )

Definition at line 222 of file CraftingRecipes.cpp.

◆ ConsumeIngredients()

void cCraftingRecipe::ConsumeIngredients ( cCraftingGrid a_CraftingGrid)

Consumes ingredients from the crafting grid specified.

Definition at line 241 of file CraftingRecipes.cpp.

◆ Dump()

void cCraftingRecipe::Dump ( void  )

Dumps the entire recipe using LOGD()

Definition at line 250 of file CraftingRecipes.cpp.

◆ GetIngredient()

cItem& cCraftingRecipe::GetIngredient ( int  x,
int  y 
) const
inline

Definition at line 69 of file CraftingRecipes.h.

◆ GetIngredientsHeight()

int cCraftingRecipe::GetIngredientsHeight ( void  ) const
inline

Definition at line 68 of file CraftingRecipes.h.

◆ GetIngredientsWidth()

int cCraftingRecipe::GetIngredientsWidth ( void  ) const
inline

Definition at line 67 of file CraftingRecipes.h.

◆ GetResult()

const cItem& cCraftingRecipe::GetResult ( void  ) const
inline

Definition at line 70 of file CraftingRecipes.h.

◆ SetIngredient() [1/2]

void cCraftingRecipe::SetIngredient ( int  x,
int  y,
const cItem a_Item 
)
inline

Definition at line 82 of file CraftingRecipes.h.

◆ SetIngredient() [2/2]

void cCraftingRecipe::SetIngredient ( int  x,
int  y,
ENUM_ITEM_TYPE  a_ItemType,
char  a_ItemCount,
short  a_ItemHealth 
)
inline

Definition at line 77 of file CraftingRecipes.h.

◆ SetResult() [1/2]

void cCraftingRecipe::SetResult ( const cItem a_Item)
inline

Definition at line 72 of file CraftingRecipes.h.

◆ SetResult() [2/2]

void cCraftingRecipe::SetResult ( ENUM_ITEM_TYPE  a_ItemType,
char  a_ItemCount,
short  a_ItemHealth 
)

Definition at line 232 of file CraftingRecipes.cpp.

Member Data Documentation

◆ m_Ingredients

cCraftingGrid cCraftingRecipe::m_Ingredients
protected

Definition at line 96 of file CraftingRecipes.h.

◆ m_Result

cItem cCraftingRecipe::m_Result
protected

Definition at line 97 of file CraftingRecipes.h.


The documentation for this class was generated from the following files: