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, ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth)
 
void SetIngredient (int x, int y, const cItem &a_Item)
 
void SetResult (ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth)
 
void SetResult (const cItem &a_Item)
 

Protected Attributes

cCraftingGrid m_Ingredients
 
cItem m_Result
 

Detailed Description

Definition at line 64 of file CraftingRecipes.h.

Constructor & Destructor Documentation

cCraftingRecipe::cCraftingRecipe ( const cCraftingGrid a_CraftingGrid)

Definition at line 219 of file CraftingRecipes.cpp.

Member Function Documentation

void cCraftingRecipe::Clear ( void  )

Definition at line 228 of file CraftingRecipes.cpp.

void cCraftingRecipe::ConsumeIngredients ( cCraftingGrid a_CraftingGrid)

Consumes ingredients from the crafting grid specified.

Definition at line 247 of file CraftingRecipes.cpp.

void cCraftingRecipe::Dump ( void  )

Dumps the entire recipe using LOGD()

Definition at line 256 of file CraftingRecipes.cpp.

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

Definition at line 73 of file CraftingRecipes.h.

int cCraftingRecipe::GetIngredientsHeight ( void  ) const
inline

Definition at line 72 of file CraftingRecipes.h.

int cCraftingRecipe::GetIngredientsWidth ( void  ) const
inline

Definition at line 71 of file CraftingRecipes.h.

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

Definition at line 74 of file CraftingRecipes.h.

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

Definition at line 81 of file CraftingRecipes.h.

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

Definition at line 86 of file CraftingRecipes.h.

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

Definition at line 238 of file CraftingRecipes.cpp.

void cCraftingRecipe::SetResult ( const cItem a_Item)
inline

Definition at line 76 of file CraftingRecipes.h.

Member Data Documentation

cCraftingGrid cCraftingRecipe::m_Ingredients
protected

Definition at line 100 of file CraftingRecipes.h.

cItem cCraftingRecipe::m_Result
protected

Definition at line 101 of file CraftingRecipes.h.


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