#include <staticobject.h>
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().
|
inline |
References m_stored.
Referenced by ServerEnvironment::activateBlock(), ServerEnvironment::activateObjects(), and MapBlock::onObjectsActivation().
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().
|
inline |
References m_active.
Referenced by ABMHandler::countObjects().
|
inline |
References m_active.
Referenced by ServerEnvironment::setStaticForActiveObjectsInBlock().
|
inline |
References m_stored.
Referenced by ServerEnvironment::activateObjects(), and MapBlock::onObjectsActivation().
|
inline |
References m_stored.
Referenced by MapBlock::onObjectsActivation(), and MapBlock::saveStaticObject().
|
inline |
References dstream, FATAL_ERROR, m_active, m_stored, and setActive().
Referenced by MapBlock::saveStaticObject().
|
inline |
References m_stored.
Referenced by ServerEnvironment::activateObjects().
|
inline |
References m_active, and warningstream.
Referenced by ServerEnvironment::deleteStaticFromBlock().
void StaticObjectList::serialize | ( | std::ostream & | os | ) |
References errorstream, m_active, m_stored, StaticObject::serialize(), U16_MAX, writeU16(), and writeU8().
Referenced by MapBlock::serialize().
|
inline |
References m_active.
Referenced by ServerEnvironment::addActiveObjectRaw(), and insert().
|
inline |
References m_active, and m_stored.
Referenced by MapBlock::clearObjects(), and ABMHandler::countObjects().
bool StaticObjectList::storeActiveObject | ( | u16 | id | ) |
References m_active, and m_stored.
Referenced by MapBlock::storeActiveObject().
|
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().