|
Maps declarations |
- Author:
-
Luxor
|
std::map< SERIAL, vector<
P_CHAR > > | pStableMap |
| std::map< SERIAL, P_CHAR > | pMounted |
std::map< SERIAL, vector<
P_CHAR > > | pOwnCharMap |
std::map< SERIAL, vector<
P_ITEM > > | pOwnItemMap |
std::map< SERIAL, vector<
P_ITEM > > | pContMap |
std::map< SERIAL, vector<
P_CHAR > > | pMultiCharMap |
std::map< SERIAL, vector<
P_ITEM > > | pMultiItemMap |
Functions |
| void | init () |
| | initializes pointer maps
|
| void | updContMap (P_ITEM pi) |
| | updates containers map
|
| void | addToStableMap (P_CHAR pet) |
| void | delFromStableMap (P_CHAR pet) |
| void | addToOwnerMap (P_CHAR pet) |
| void | delFromOwnerMap (P_CHAR pet) |
| void | addToOwnerMap (P_ITEM pi) |
| void | delFromOwnerMap (P_ITEM pi) |
| void | addToMultiMap (P_CHAR pc) |
| void | delFromMultiMap (P_CHAR pc) |
| void | addToMultiMap (P_ITEM pi) |
| void | delFromMultiMap (P_ITEM pi) |
| void | eraseContainerInfo (SERIAL ser) |
| void | delChar (P_CHAR pc) |
| | removes a char from chars pointer map and cleares its vector in pContMap
|
| void | delItem (P_ITEM pi) |
| | removes an item from items pointer and from the vector of his container
|
| P_CHAR | findCharBySerial (int serial) |
| | returns the corrispondent char of a serial
|
| P_ITEM | findItemBySerial (SERIAL serial) |
| | returns the corrispondent item of a serial
|
| P_CHAR | findCharBySerPtr (UI08 *p) |
| | returns the corrispondent char of a serial
|
| P_ITEM | findItemBySerPtr (unsigned char *p) |
| | returns the corrispondent item of a serial
|
| P_ITEM | containerSearch (int serial, int *index) |
| | returns the *index element of the vector of a container (identified by serial)
|
| P_CHAR | stableSearch (int serial, int *index) |
| P_ITEM | containerSearchFor (const int serial, int *index, short id, short color) |
| | returns the *index element with the given id and color of the vector of a container(identified by serial)
|
| UI32 | containerCountItemsByType (SERIAL serial, UI32 type, LOGICAL bAddAmounts, LOGICAL recurseSubpack) |
| | returns the number of elements with the given type of the vector of a container (identified by serial)
|
| UI32 | containerCountItems (SERIAL serial, short id, short color, LOGICAL bAddAmounts, LOGICAL recurseSubpack) |
| | returns the number of elements with the given id and color of the vector of a container (identified by serial)
|
| UI32 | containerCountItemsByID (SERIAL serial, UI32 scriptID, LOGICAL bAddAmounts) |
| | returns the number of elements with the given scriptid of the vector of a container (identified by serial)
|
| P_ITEM | findItemBySerial (int serial) |
| P_CHAR | findCharBySerPtr (unsigned char *p) |