OpenMW
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
ESM::Cell Struct Reference

#include <loadcell.hpp>

List of all members.

Classes

struct  AMBIstruct
struct  DATAstruct

Public Types

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

Public Member Functions

void preLoad (ESMReader &esm)
void postLoad (ESMReader &esm)
void load (ESMReader &esm, bool saveContext=true)
void save (ESMWriter &esm) 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)
void blank ()
 Set record to default state (does not touch the ID/index).

Static Public Member Functions

static bool getNextRef (ESMReader &esm, CellRef &ref)
static bool getNextMVRF (ESMReader &esm, MovedCellRef &mref)

Public Attributes

std::string mName
std::string mRegion
std::vector< ESM_ContextmContextList
DATAstruct mData
AMBIstruct mAmbi
float mWater
bool mWaterInt
int mMapColor
int mNAM0
CellRefTracker mLeasedRefs
MovedCellRefTracker mMovedRefs

Static Public Attributes

static unsigned int sRecordId = REC_CELL

Member Enumeration Documentation

Enumerator:
Interior 
HasWater 
NoSleep 
QuasiEx 

Member Function Documentation

void ESM::Cell::blank ( )

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

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

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

int ESM::Cell::getGridX ( ) const [inline]
int ESM::Cell::getGridY ( ) const [inline]
bool ESM::Cell::getNextMVRF ( ESMReader esm,
MovedCellRef mref 
) [static]
bool ESM::Cell::getNextRef ( ESMReader esm,
CellRef ref 
) [static]
bool ESM::Cell::hasWater ( ) const [inline]
bool ESM::Cell::isExterior ( ) const [inline]
void ESM::Cell::load ( ESMReader esm,
bool  saveContext = true 
)
void ESM::Cell::postLoad ( ESMReader esm)
void ESM::Cell::preLoad ( ESMReader esm)
void ESM::Cell::restore ( ESMReader esm,
int  iCtx 
) const
void ESM::Cell::save ( ESMWriter esm) const

Member Data Documentation

std::string ESM::Cell::mName
std::string ESM::Cell::mRegion
unsigned int ESM::Cell::sRecordId = REC_CELL [static]

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