Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Public Member Functions | 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)
 
int Resolve (const AString &a_ItemName)
 
bool ResolveItem (const AString &a_ItemName, cItem &a_Item)
 

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 BlockType.cpp.

Member Typedef Documentation

◆ ItemMap

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

Definition at line 25 of file BlockType.cpp.

Constructor & Destructor Documentation

◆ cBlockIDMap()

cBlockIDMap::cBlockIDMap ( void  )
inline

Definition at line 29 of file BlockType.cpp.

Member Function Documentation

◆ AddToMap()

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

Definition at line 155 of file BlockType.cpp.

◆ Desolve()

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

Definition at line 114 of file BlockType.cpp.

◆ Resolve()

int cBlockIDMap::Resolve ( const AString a_ItemName)
inline

Definition at line 55 of file BlockType.cpp.

◆ ResolveItem()

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

Definition at line 66 of file BlockType.cpp.

Member Data Documentation

◆ m_Map

ItemMap cBlockIDMap::m_Map
protected

Definition at line 152 of file BlockType.cpp.


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