OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWWorld::CellRef Class Reference

Encapsulated variant of ESM::CellRef with change tracking. More...

#include <cellref.hpp>

Collaboration diagram for MWWorld::CellRef:

Public Member Functions

 CellRef (const ESM::CellRef &ref)
 
const ESM::RefNumgetRefNum () const
 
void unsetRefNum ()
 
bool hasContentFile () const
 Does the RefNum have a content file? More...
 
std::string getRefId () const
 
bool getTeleport () const
 
ESM::Position getDoorDest () const
 
std::string getDestCell () const
 
float getScale () const
 
void setScale (float scale)
 
ESM::Position getPosition () const
 
void setPosition (const ESM::Position &position)
 
float getEnchantmentCharge () const
 
void setEnchantmentCharge (float charge)
 
int getCharge () const
 
float getChargeFloat () const
 
void setCharge (int charge)
 
void setChargeFloat (float charge)
 
void applyChargeRemainderToBeSubtracted (float chargeRemainder)
 
std::string getOwner () const
 
void setOwner (const std::string &owner)
 
std::string getGlobalVariable () const
 
void resetGlobalVariable ()
 
std::string getSoul () const
 
void setSoul (const std::string &soul)
 
std::string getFaction () const
 
void setFaction (const std::string &faction)
 
void setFactionRank (int factionRank)
 
int getFactionRank () const
 
int getLockLevel () const
 
void setLockLevel (int lockLevel)
 
std::string getKey () const
 
std::string getTrap () const
 
void setTrap (const std::string &trap)
 
int getGoldValue () const
 
void setGoldValue (int value)
 
void writeState (ESM::ObjectState &state) const
 
bool hasChanged () const
 

Private Attributes

bool mChanged
 
ESM::CellRef mCellRef
 

Detailed Description

Encapsulated variant of ESM::CellRef with change tracking.

Constructor & Destructor Documentation

MWWorld::CellRef::CellRef ( const ESM::CellRef ref)
inline

Member Function Documentation

void MWWorld::CellRef::applyChargeRemainderToBeSubtracted ( float  chargeRemainder)

Here is the caller graph for this function:

int MWWorld::CellRef::getCharge ( ) const

Here is the caller graph for this function:

float MWWorld::CellRef::getChargeFloat ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getDestCell ( ) const

Here is the caller graph for this function:

ESM::Position MWWorld::CellRef::getDoorDest ( ) const

Here is the caller graph for this function:

float MWWorld::CellRef::getEnchantmentCharge ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getFaction ( ) const

Here is the caller graph for this function:

int MWWorld::CellRef::getFactionRank ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getGlobalVariable ( ) const

Here is the caller graph for this function:

int MWWorld::CellRef::getGoldValue ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getKey ( ) const

Here is the caller graph for this function:

int MWWorld::CellRef::getLockLevel ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getOwner ( ) const

Here is the caller graph for this function:

ESM::Position MWWorld::CellRef::getPosition ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getRefId ( ) const
const ESM::RefNum & MWWorld::CellRef::getRefNum ( ) const

Here is the caller graph for this function:

float MWWorld::CellRef::getScale ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getSoul ( ) const

Here is the caller graph for this function:

bool MWWorld::CellRef::getTeleport ( ) const

Here is the caller graph for this function:

std::string MWWorld::CellRef::getTrap ( ) const

Here is the caller graph for this function:

bool MWWorld::CellRef::hasChanged ( ) const
bool MWWorld::CellRef::hasContentFile ( ) const

Does the RefNum have a content file?

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::CellRef::resetGlobalVariable ( )

Here is the caller graph for this function:

void MWWorld::CellRef::setCharge ( int  charge)

Here is the caller graph for this function:

void MWWorld::CellRef::setChargeFloat ( float  charge)

Here is the caller graph for this function:

void MWWorld::CellRef::setEnchantmentCharge ( float  charge)

Here is the caller graph for this function:

void MWWorld::CellRef::setFaction ( const std::string &  faction)

Here is the caller graph for this function:

void MWWorld::CellRef::setFactionRank ( int  factionRank)

Here is the caller graph for this function:

void MWWorld::CellRef::setGoldValue ( int  value)
void MWWorld::CellRef::setLockLevel ( int  lockLevel)

Here is the caller graph for this function:

void MWWorld::CellRef::setOwner ( const std::string &  owner)

Here is the caller graph for this function:

void MWWorld::CellRef::setPosition ( const ESM::Position position)

Here is the caller graph for this function:

void MWWorld::CellRef::setScale ( float  scale)

Here is the caller graph for this function:

void MWWorld::CellRef::setSoul ( const std::string &  soul)

Here is the caller graph for this function:

void MWWorld::CellRef::setTrap ( const std::string &  trap)

Here is the caller graph for this function:

void MWWorld::CellRef::unsetRefNum ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::CellRef::writeState ( ESM::ObjectState state) const

Member Data Documentation

ESM::CellRef MWWorld::CellRef::mCellRef
private
bool MWWorld::CellRef::mChanged
private

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