#include <staticobject.h>
Collaboration diagram for StaticObjectList:Public Member Functions | |
| void | insert (u16 id, const StaticObject &obj) |
| void | remove (u16 id) |
| void | serialize (std::ostream &os) |
| void | deSerialize (std::istream &is) |
| const std::vector< StaticObject > & | getAllStored () const |
| const std::map< u16, StaticObject > & | getAllActives () const |
| void | setActive (u16 id, const StaticObject &obj) |
| size_t | getActiveSize () const |
| size_t | getStoredSize () const |
| void | clearStored () |
| void | pushStored (const StaticObject &obj) |
| bool | storeActiveObject (u16 id) |
| void | clear () |
| size_t | size () |
Private Attributes | |
| std::vector< StaticObject > | m_stored |
| std::map< u16, StaticObject > | m_active |
|
inline |
References m_active, and m_stored.
Referenced by MapBlock::clearObjects().
Here is the caller graph for this function:
|
inline |
References m_stored.
Referenced by ServerEnvironment::activateBlock(), ServerEnvironment::activateObjects(), and MapBlock::onObjectsActivation().
Here is the caller graph for this function:| void StaticObjectList::deSerialize | ( | std::istream & | is | ) |
References StaticObject::deSerialize(), errorstream, m_active, m_stored, readU16(), and readU8().
Referenced by MapBlock::deSerialize(), and MapBlock::deSerialize_pre22().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_active.
Referenced by ABMHandler::countObjects().
Here is the caller graph for this function:
|
inline |
References m_active.
Referenced by ServerEnvironment::setStaticForActiveObjectsInBlock().
Here is the caller graph for this function:
|
inline |
References m_stored.
Referenced by ServerEnvironment::activateObjects(), and MapBlock::onObjectsActivation().
Here is the caller graph for this function:
|
inline |
References m_stored.
Referenced by MapBlock::onObjectsActivation(), and MapBlock::saveStaticObject().
Here is the caller graph for this function:
|
inline |
References dstream, FATAL_ERROR, m_active, m_stored, and setActive().
Referenced by MapBlock::saveStaticObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_stored.
Referenced by ServerEnvironment::activateObjects().
Here is the caller graph for this function:
|
inline |
References m_active, and warningstream.
Referenced by ServerEnvironment::deleteStaticFromBlock().
Here is the caller graph for this function:| void StaticObjectList::serialize | ( | std::ostream & | os | ) |
References errorstream, m_active, m_stored, StaticObject::serialize(), U16_MAX, writeU16(), and writeU8().
Referenced by MapBlock::serialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_active.
Referenced by ServerEnvironment::addActiveObjectRaw(), and insert().
Here is the caller graph for this function:
|
inline |
References m_active, and m_stored.
Referenced by MapBlock::clearObjects(), and ABMHandler::countObjects().
Here is the caller graph for this function:| bool StaticObjectList::storeActiveObject | ( | u16 | id | ) |
References m_active, and m_stored.
Referenced by MapBlock::storeActiveObject().
Here is the caller graph for this function:
|
private |
Referenced by clear(), deSerialize(), getActiveSize(), getAllActives(), insert(), remove(), serialize(), setActive(), size(), and storeActiveObject().
|
private |
Referenced by clear(), clearStored(), deSerialize(), getAllStored(), getStoredSize(), insert(), pushStored(), serialize(), size(), and storeActiveObject().