OpenMW
|
#include <refdata.hpp>
Public Member Functions | |
RefData (const ESM::CellRef &cellRef) | |
RefData (const RefData &refData) | |
~RefData () | |
RefData & | operator= (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::Locals & | getLocals () |
bool | isEnabled () const |
void | enable () |
void | disable () |
ESM::Position & | getPosition () |
LocalRotation & | getLocalRotation () |
void | setCustomData (CustomData *data) |
CustomData * | getCustomData () |
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 |
CustomData * | mCustomData |
MWWorld::RefData::RefData | ( | const ESM::CellRef & | cellRef | ) |
cellRef | Used 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 | ) |
void MWWorld::RefData::cleanup | ( | ) | [private] |
void MWWorld::RefData::copy | ( | const RefData & | refData | ) | [private] |
void MWWorld::RefData::disable | ( | ) |
void MWWorld::RefData::enable | ( | ) |
Ogre::SceneNode * MWWorld::RefData::getBaseNode | ( | ) |
Return OGRE base node (can be a null pointer).
int MWWorld::RefData::getCount | ( | ) | const |
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).
bool MWWorld::RefData::isEnabled | ( | ) | const |
void MWWorld::RefData::setBaseNode | ( | Ogre::SceneNode * | base | ) |
Set OGRE base node (can be a null pointer).
void MWWorld::RefData::setCount | ( | int | count | ) |
void MWWorld::RefData::setCustomData | ( | CustomData * | data | ) |
Set custom data (potentially replacing old custom data). The ownership of \æ data is transferred to this.
void MWWorld::RefData::setLocals | ( | const ESM::Script & | script | ) |
Ogre::SceneNode* MWWorld::RefData::mBaseNode [private] |
int MWWorld::RefData::mCount [private] |
CustomData* MWWorld::RefData::mCustomData [private] |
bool MWWorld::RefData::mEnabled [private] |
bool MWWorld::RefData::mHasLocals [private] |
MWScript::Locals MWWorld::RefData::mLocals [private] |
ESM::Position MWWorld::RefData::mPosition [private] |