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

Wrapper for CellRef sub record. More...

#include <ref.hpp>

Inheritance diagram for CSMWorld::CellRef:
Collaboration diagram for CSMWorld::CellRef:

Public Member Functions

 CellRef ()
 
std::pair< int, intgetCellIndex () const
 Calculate cell index based on coordinates (x and y) More...
 
- Public Member Functions inherited from ESM::CellRef
void load (ESMReader &esm, bool &isDeleted, bool wideRefNum=false)
 Calls loadId and loadData. More...
 
void loadId (ESMReader &esm, bool wideRefNum=false)
 
void loadData (ESMReader &esm, bool &isDeleted)
 Implicitly called by load. More...
 
void save (ESMWriter &esm, bool wideRefNum=false, bool inInventory=false, bool isDeleted=false) const
 
void blank ()
 

Public Attributes

std::string mId
 
std::string mCell
 
std::string mOriginalCell
 
bool mNew
 
- Public Attributes inherited from ESM::CellRef
RefNum mRefNum
 
std::string mRefID
 
float mScale
 
std::string mOwner
 
std::string mGlobalVariable
 
std::string mSoul
 
std::string mFaction
 
int mFactionRank
 
union {
   int   mChargeInt
 
   float   mChargeFloat
 
}; 
 
float mChargeIntRemainder
 
float mEnchantmentCharge
 
int mGoldValue
 
bool mTeleport
 
Position mDoorDest
 
std::string mDestCell
 
int mLockLevel
 
std::string mKey
 
std::string mTrap
 
signed char mReferenceBlocked
 
Position mPos
 

Detailed Description

Wrapper for CellRef sub record.

Constructor & Destructor Documentation

CSMWorld::CellRef::CellRef ( )

Member Function Documentation

std::pair< int, int > CSMWorld::CellRef::getCellIndex ( ) const

Calculate cell index based on coordinates (x and y)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string CSMWorld::CellRef::mCell
std::string CSMWorld::CellRef::mId
bool CSMWorld::CellRef::mNew
std::string CSMWorld::CellRef::mOriginalCell

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