OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
MWWorld::LiveCellRefBase Struct Referenceabstract

Used to create pointers to hold any type of LiveCellRef<> object. More...

#include <livecellref.hpp>

Inheritance diagram for MWWorld::LiveCellRefBase:
Collaboration diagram for MWWorld::LiveCellRefBase:

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 ClassmClass
 
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)
 

Detailed Description

Used to create pointers to hold any type of LiveCellRef<> object.

Constructor & Destructor Documentation

MWWorld::LiveCellRefBase::LiveCellRefBase ( const std::string &  type,
const ESM::CellRef cref = ESM::CellRef() 
)
virtual MWWorld::LiveCellRefBase::~LiveCellRefBase ( )
inlinevirtual

Member Function Documentation

bool MWWorld::LiveCellRefBase::checkStateImp ( const ESM::ObjectState state)
staticprotected

Check if state is valid and report errors.

Returns
Valid?
Note
Does not check if the RefId exists.
virtual void MWWorld::LiveCellRefBase::load ( const ESM::ObjectState state)
pure virtual

Load state into a LiveCellRef, that has already been initialised with base and class.

Attention
Must not be called with an invalid state.

Implemented in MWWorld::LiveCellRef< X >, and MWWorld::LiveCellRef< ESM::NPC >.

void MWWorld::LiveCellRefBase::loadImp ( const ESM::ObjectState state)
protected

Load state into a LiveCellRef, that has already been initialised with base and class.

Attention
Must not be called with an invalid state.

Here is the call graph for this function:

virtual void MWWorld::LiveCellRefBase::save ( ESM::ObjectState state) const
pure virtual

Save LiveCellRef state into state.

Implemented in MWWorld::LiveCellRef< X >, and MWWorld::LiveCellRef< ESM::NPC >.

void MWWorld::LiveCellRefBase::saveImp ( ESM::ObjectState state) const
protected

Save LiveCellRef state into state.

Member Data Documentation

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.


The documentation for this struct was generated from the following files: