Otclient  14/8/2020
ItemType Class Reference

#include <itemtype.h>

Inheritance diagram for ItemType:
Collaboration diagram for ItemType:

Public Member Functions

 ItemType ()
 
void unserialize (const BinaryTreePtr &node)
 
void setServerId (uint16 serverId)
 
uint16 getServerId ()
 
void setClientId (uint16 clientId)
 
uint16 getClientId ()
 
void setCategory (ItemCategory category)
 
ItemCategory getCategory ()
 
void setName (const std::string &name)
 
std::string getName ()
 
void setDesc (const std::string &desc)
 
std::string getDesc ()
 
bool isNull ()
 
bool isWritable ()
 
- Public Member Functions inherited from LuaObject
 LuaObject ()
 
virtual ~LuaObject ()
 
template<typename T >
void connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false)
 
template<typename... T>
int luaCallLuaField (const std::string &field, const T &... args)
 
template<typename R , typename... T>
callLuaField (const std::string &field, const T &... args)
 
template<typename... T>
void callLuaField (const std::string &field, const T &... args)
 
bool hasLuaField (const std::string &field)
 Returns true if the lua field exists. More...
 
template<typename T >
void setLuaField (const std::string &key, const T &value)
 Sets a field in this lua object. More...
 
template<typename T >
getLuaField (const std::string &key)
 Gets a field from this lua object. More...
 
void releaseLuaFieldsTable ()
 Release fields table reference. More...
 
void luaSetField (const std::string &key)
 Sets a field from this lua object, the value must be on the stack. More...
 
void luaGetField (const std::string &key)
 Gets a field from this lua object, the result is pushed onto the stack. More...
 
void luaGetMetatable ()
 Get object's metatable. More...
 
void luaGetFieldsTable ()
 Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
 
int getUseCount ()
 
std::string getClassName ()
 Returns the derived class name, its the same name used in Lua. More...
 
LuaObjectPtr asLuaObject ()
 
void operator= (const LuaObject &)
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Detailed Description

Definition at line 130 of file itemtype.h.

Constructor & Destructor Documentation

◆ ItemType()

ItemType::ItemType ( )

Definition at line 31 of file itemtype.cpp.

Member Function Documentation

◆ getCategory()

ItemCategory ItemType::getCategory ( )
inline

Definition at line 144 of file itemtype.h.

◆ getClientId()

uint16 ItemType::getClientId ( )
inline

Definition at line 141 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDesc()

std::string ItemType::getDesc ( )
inline

Definition at line 150 of file itemtype.h.

Here is the call graph for this function:

◆ getName()

std::string ItemType::getName ( )
inline

Definition at line 147 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getServerId()

uint16 ItemType::getServerId ( )
inline

Definition at line 138 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNull()

bool ItemType::isNull ( )
inline

Definition at line 152 of file itemtype.h.

◆ isWritable()

bool ItemType::isWritable ( )
inline

Definition at line 153 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCategory()

void ItemType::setCategory ( ItemCategory  category)
inline

Definition at line 143 of file itemtype.h.

Here is the caller graph for this function:

◆ setClientId()

void ItemType::setClientId ( uint16  clientId)
inline

Definition at line 140 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDesc()

void ItemType::setDesc ( const std::string &  desc)
inline

Definition at line 149 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setName()

void ItemType::setName ( const std::string &  name)
inline

Definition at line 146 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setServerId()

void ItemType::setServerId ( uint16  serverId)
inline

Definition at line 137 of file itemtype.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unserialize()

void ItemType::unserialize ( const BinaryTreePtr node)

Definition at line 36 of file itemtype.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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