OpenMW
Public Member Functions | Private Member Functions | Private Attributes
MWWorld::RefData Class Reference

#include <refdata.hpp>

List of all members.

Public Member Functions

 RefData (const ESM::CellRef &cellRef)
 RefData (const RefData &refData)
 ~RefData ()
RefDataoperator= (const RefData &refData)
const std::string & getHandle ()
 Return OGRE handle (may be empty).
Ogre::SceneNode * getBaseNode ()
 Return OGRE base node (can be a null pointer).
void setBaseNode (Ogre::SceneNode *base)
 Set OGRE base node (can be a null pointer).
int getCount () const
void setLocals (const ESM::Script &script)
void setCount (int count)
MWScript::LocalsgetLocals ()
bool isEnabled () const
void enable ()
void disable ()
ESM::PositiongetPosition ()
LocalRotationgetLocalRotation ()
void setCustomData (CustomData *data)
CustomDatagetCustomData ()
 May return a 0-pointer. The ownership of the return data object is not transferred.

Private Member Functions

void copy (const RefData &refData)
void cleanup ()

Private Attributes

Ogre::SceneNode * mBaseNode
MWScript::Locals mLocals
bool mHasLocals
bool mEnabled
int mCount
ESM::Position mPosition
LocalRotation mLocalRotation
CustomDatamCustomData

Constructor & Destructor Documentation

Parameters:
cellRefUsed to copy constant data such as position into this class where it can be altered without effecting the original data. This makes it possible to reset the position as the orignal data is still held in the CellRef
MWWorld::RefData::RefData ( const RefData refData)

Member Function Documentation

void MWWorld::RefData::cleanup ( ) [private]
void MWWorld::RefData::copy ( const RefData refData) [private]
Ogre::SceneNode * MWWorld::RefData::getBaseNode ( )

Return OGRE base node (can be a null pointer).

May return a 0-pointer. The ownership of the return data object is not transferred.

const std::string & MWWorld::RefData::getHandle ( )

Return OGRE handle (may be empty).

Set object count (an object pile is a simple object with a count >1).

Warning:
Do not call setCount() to add or remove objects from a container or an actor's inventory. Call ContainerStore::add() or ContainerStore::remove() instead.
RefData & MWWorld::RefData::operator= ( const RefData refData)
void MWWorld::RefData::setBaseNode ( Ogre::SceneNode *  base)

Set OGRE base node (can be a null pointer).

void MWWorld::RefData::setCount ( int  count)

Set custom data (potentially replacing old custom data). The ownership of \æ data is transferred to this.

void MWWorld::RefData::setLocals ( const ESM::Script script)

Member Data Documentation

Ogre::SceneNode* MWWorld::RefData::mBaseNode [private]
int MWWorld::RefData::mCount [private]

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