OpenMW
|
Used to create pointers to hold any type of LiveCellRef<> object. More...
#include <livecellref.hpp>
Public Member Functions | |
LiveCellRefBase (const std::string &type, const ESM::CellRef &cref=ESM::CellRef()) | |
virtual | ~LiveCellRefBase () |
virtual void | load (const ESM::ObjectState &state)=0 |
virtual void | save (ESM::ObjectState &state) const =0 |
Save LiveCellRef state into state. More... | |
Public Attributes | |
const Class * | mClass |
MWWorld::CellRef | mRef |
RefData | mData |
Protected Member Functions | |
void | loadImp (const ESM::ObjectState &state) |
void | saveImp (ESM::ObjectState &state) const |
Save LiveCellRef state into state. More... | |
Static Protected Member Functions | |
static bool | checkStateImp (const ESM::ObjectState &state) |
Used to create pointers to hold any type of LiveCellRef<> object.
MWWorld::LiveCellRefBase::LiveCellRefBase | ( | const std::string & | type, |
const ESM::CellRef & | cref = ESM::CellRef() |
||
) |
|
inlinevirtual |
|
staticprotected |
Check if state is valid and report errors.
|
pure virtual |
Load state into a LiveCellRef, that has already been initialised with base and class.
Implemented in MWWorld::LiveCellRef< X >, and MWWorld::LiveCellRef< ESM::NPC >.
|
protected |
Load state into a LiveCellRef, that has already been initialised with base and class.
|
pure virtual |
Save LiveCellRef state into state.
Implemented in MWWorld::LiveCellRef< X >, and MWWorld::LiveCellRef< ESM::NPC >.
|
protected |
Save LiveCellRef state into state.
const Class* MWWorld::LiveCellRefBase::mClass |
RefData MWWorld::LiveCellRefBase::mData |
runtime-data
MWWorld::CellRef MWWorld::LiveCellRefBase::mRef |
Information about this instance, such as 3D location and rotation and individual type-dependent data.