Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | List of all members
cBlockIDMap Class Reference

Classes

struct  Comparator
 

Public Member Functions

 cBlockIDMap (void)
 
AString Desolve (short a_ItemType, short a_ItemDamage)
 
void init ()
 
int Resolve (const AString &a_ItemName)
 
bool ResolveItem (const AString &a_ItemName, cItem &a_Item)
 

Static Public Attributes

static bool m_bHasRunInit = false
 

Protected Member Functions

void AddToMap (const AString &a_Name, const AString &a_Value)
 

Protected Attributes

ItemMap m_Map
 

Private Types

typedef std::map< AString, std::pair< short, short >, ComparatorItemMap
 

Detailed Description

Definition at line 14 of file BlockID.cpp.

Member Typedef Documentation

typedef std::map<AString, std::pair<short, short>, Comparator> cBlockIDMap::ItemMap
private

Definition at line 25 of file BlockID.cpp.

Constructor & Destructor Documentation

cBlockIDMap::cBlockIDMap ( void  )
inline

Definition at line 30 of file BlockID.cpp.

Member Function Documentation

void cBlockIDMap::AddToMap ( const AString a_Name,
const AString a_Value 
)
inlineprotected

Definition at line 164 of file BlockID.cpp.

AString cBlockIDMap::Desolve ( short  a_ItemType,
short  a_ItemDamage 
)
inline

Definition at line 123 of file BlockID.cpp.

void cBlockIDMap::init ( )
inline

Definition at line 36 of file BlockID.cpp.

int cBlockIDMap::Resolve ( const AString a_ItemName)
inline

Definition at line 64 of file BlockID.cpp.

bool cBlockIDMap::ResolveItem ( const AString a_ItemName,
cItem a_Item 
)
inline

Definition at line 75 of file BlockID.cpp.

Member Data Documentation

bool cBlockIDMap::m_bHasRunInit = false
static

Definition at line 28 of file BlockID.cpp.

ItemMap cBlockIDMap::m_Map
protected

Definition at line 161 of file BlockID.cpp.


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