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

#include <loadcell.hpp>

Inheritance diagram for ESM::Cell:
Collaboration diagram for ESM::Cell:

Classes

struct  AMBIstruct
 
struct  DATAstruct
 

Public Types

enum  Flags { Interior = 0x01, HasWater = 0x02, NoSleep = 0x04, QuasiEx = 0x80 }
 

Public Member Functions

 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
 

Static Public Member Functions

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)
 

Public Attributes

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
 

Static Public Attributes

static unsigned int sRecordId = REC_CELL
 

Member Enumeration Documentation

Enumerator
Interior 
HasWater 
NoSleep 
QuasiEx 

Constructor & Destructor Documentation

ESM::Cell::Cell ( )
inline

Member Function Documentation

void ESM::Cell::blank ( )

Set record to default state (does not touch the ID/index).

Here is the caller graph for this function:

const CellId & ESM::Cell::getCellId ( ) const

Here is the caller graph for this function:

std::string ESM::Cell::getDescription ( ) const

Return a short string describing the cell (mostly used for debugging/logging purpose)

Here is the caller graph for this function:

int ESM::Cell::getGridX ( ) const
inline

Here is the caller graph for this function:

int ESM::Cell::getGridY ( ) const
inline

Here is the caller graph for this function:

bool ESM::Cell::getNextMVRF ( ESMReader esm,
MovedCellRef mref 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

bool ESM::Cell::getNextRef ( ESMReader esm,
CellRef ref,
bool isDeleted,
bool  ignoreMoves = false,
MovedCellRef mref = 0 
)
static
Parameters
ignoreMovesignore MVRF record and read reference like a regular CellRef.

Here is the call graph for this function:

Here is the caller graph for this function:

static std::string ESM::Cell::getRecordType ( )
inlinestatic

Return a string descriptor for this record type. Currently used for debugging / error logs only.

bool ESM::Cell::hasWater ( ) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

bool ESM::Cell::isExterior ( ) const
inline

Here is the caller graph for this function:

void ESM::Cell::load ( ESMReader esm,
bool isDeleted,
bool  saveContext = true 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Cell::loadCell ( ESMReader esm,
bool  saveContext = true 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Cell::loadNameAndData ( ESMReader esm,
bool isDeleted 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Cell::postLoad ( ESMReader esm)

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Cell::restore ( ESMReader esm,
int  iCtx 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Cell::save ( ESMWriter esm,
bool  isDeleted = false 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

AMBIstruct ESM::Cell::mAmbi
CellId ESM::Cell::mCellId
std::vector<ESM_Context> ESM::Cell::mContextList
DATAstruct ESM::Cell::mData
CellRefTracker ESM::Cell::mLeasedRefs
int ESM::Cell::mMapColor
MovedCellRefTracker ESM::Cell::mMovedRefs
std::string ESM::Cell::mName
int ESM::Cell::mRefNumCounter
std::string ESM::Cell::mRegion
float ESM::Cell::mWater
bool ESM::Cell::mWaterInt
unsigned int ESM::Cell::sRecordId = REC_CELL
static

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