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::Cell Struct Reference

Wrapper for Cell record. More...

#include <cell.hpp>

Inheritance diagram for CSMWorld::Cell:
Collaboration diagram for CSMWorld::Cell:

Public Member Functions

void load (ESM::ESMReader &esm, bool &isDeleted)
 
- Public Member Functions inherited from ESM::Cell
 Cell ()
 
void postLoad (ESMReader &esm)
 
void load (ESMReader &esm, bool &isDeleted, bool saveContext=true)
 
void loadNameAndData (ESMReader &esm, bool &isDeleted)
 
void loadCell (ESMReader &esm, bool saveContext=true)
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
bool isExterior () const
 
int getGridX () const
 
int getGridY () const
 
bool hasWater () const
 
void restore (ESMReader &esm, int iCtx) const
 
std::string getDescription () const
 Return a short string describing the cell (mostly used for debugging/logging purpose) More...
 
void blank ()
 Set record to default state (does not touch the ID/index). More...
 
const CellIdgetCellId () const
 

Public Attributes

std::string mId
 
- Public Attributes inherited from ESM::Cell
std::string mName
 
std::string mRegion
 
std::vector< ESM_ContextmContextList
 
DATAstruct mData
 
CellId mCellId
 
AMBIstruct mAmbi
 
float mWater
 
bool mWaterInt
 
int mMapColor
 
int mRefNumCounter
 
CellRefTracker mLeasedRefs
 
MovedCellRefTracker mMovedRefs
 

Additional Inherited Members

- Public Types inherited from ESM::Cell
enum  Flags { Interior = 0x01, HasWater = 0x02, NoSleep = 0x04, QuasiEx = 0x80 }
 
- Static Public Member Functions inherited from ESM::Cell
static std::string getRecordType ()
 Return a string descriptor for this record type. Currently used for debugging / error logs only. More...
 
static bool getNextRef (ESMReader &esm, CellRef &ref, bool &isDeleted, bool ignoreMoves=false, MovedCellRef *mref=0)
 
static bool getNextMVRF (ESMReader &esm, MovedCellRef &mref)
 
- Static Public Attributes inherited from ESM::Cell
static unsigned int sRecordId = REC_CELL
 

Detailed Description

Wrapper for Cell record.

Attention
The mData.mX and mData.mY fields of the ESM::Cell struct are not used. Exterior cell coordinates are encoded in the cell ID.

Member Function Documentation

void CSMWorld::Cell::load ( ESM::ESMReader esm,
bool isDeleted 
)

Here is the call graph for this function:

Member Data Documentation

std::string CSMWorld::Cell::mId

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