#include <container.h>
|
ItemPtr | getItem (int slot) |
|
std::deque< ItemPtr > | getItems () |
|
int | getItemsCount () |
|
Position | getSlotPosition (int slot) |
|
int | getId () |
|
int | getCapacity () |
|
ItemPtr | getContainerItem () |
|
std::string | getName () |
|
bool | hasParent () |
|
bool | isClosed () |
|
bool | isUnlocked () |
|
bool | hasPages () |
|
int | getSize () |
|
int | getFirstIndex () |
|
ItemPtr | findItemById (uint itemId, int subType) |
|
| 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> |
R | 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 > |
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 &) |
|
| 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 () |
|
|
| Container (int id, int capacity, const std::string &name, const ItemPtr &containerItem, bool hasParent, bool isUnlocked, bool hasPages, int containerSize, int firstIndex) |
|
void | onOpen (const ContainerPtr &previousContainer) |
|
void | onClose () |
|
void | onAddItem (const ItemPtr &item, int slot) |
|
void | onAddItems (const std::vector< ItemPtr > &items) |
|
void | onUpdateItem (int slot, const ItemPtr &item) |
|
void | onRemoveItem (int slot, const ItemPtr &lastItem) |
|
Definition at line 32 of file container.h.
◆ Container()
Container::Container |
( |
int |
id, |
|
|
int |
capacity, |
|
|
const std::string & |
name, |
|
|
const ItemPtr & |
containerItem, |
|
|
bool |
hasParent, |
|
|
bool |
isUnlocked, |
|
|
bool |
hasPages, |
|
|
int |
containerSize, |
|
|
int |
firstIndex |
|
) |
| |
|
protected |
◆ findItemById()
ItemPtr Container::findItemById |
( |
uint |
itemId, |
|
|
int |
subType |
|
) |
| |
◆ getCapacity()
int Container::getCapacity |
( |
| ) |
|
|
inline |
◆ getContainerItem()
ItemPtr Container::getContainerItem |
( |
| ) |
|
|
inline |
◆ getFirstIndex()
int Container::getFirstIndex |
( |
| ) |
|
|
inline |
◆ getId()
◆ getItem()
ItemPtr Container::getItem |
( |
int |
slot | ) |
|
◆ getItems()
std::deque<ItemPtr> Container::getItems |
( |
| ) |
|
|
inline |
◆ getItemsCount()
int Container::getItemsCount |
( |
| ) |
|
|
inline |
◆ getName()
std::string Container::getName |
( |
| ) |
|
|
inline |
◆ getSize()
int Container::getSize |
( |
| ) |
|
|
inline |
◆ getSlotPosition()
Position Container::getSlotPosition |
( |
int |
slot | ) |
|
|
inline |
◆ hasPages()
bool Container::hasPages |
( |
| ) |
|
|
inline |
◆ hasParent()
bool Container::hasParent |
( |
| ) |
|
|
inline |
◆ isClosed()
bool Container::isClosed |
( |
| ) |
|
|
inline |
◆ isUnlocked()
bool Container::isUnlocked |
( |
| ) |
|
|
inline |
◆ onAddItem()
void Container::onAddItem |
( |
const ItemPtr & |
item, |
|
|
int |
slot |
|
) |
| |
|
protected |
◆ onAddItems()
void Container::onAddItems |
( |
const std::vector< ItemPtr > & |
items | ) |
|
|
protected |
◆ onClose()
void Container::onClose |
( |
| ) |
|
|
protected |
◆ onOpen()
void Container::onOpen |
( |
const ContainerPtr & |
previousContainer | ) |
|
|
protected |
◆ onRemoveItem()
void Container::onRemoveItem |
( |
int |
slot, |
|
|
const ItemPtr & |
lastItem |
|
) |
| |
|
protected |
◆ onUpdateItem()
void Container::onUpdateItem |
( |
int |
slot, |
|
|
const ItemPtr & |
item |
|
) |
| |
|
protected |
◆ Game
The documentation for this class was generated from the following files: