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

Wrapper for Land record. Encodes X and Y cell index in the ID. More...

#include <land.hpp>

Inheritance diagram for CSMWorld::Land:
Collaboration diagram for CSMWorld::Land:

Public Member Functions

void load (ESM::ESMReader &esm, bool &isDeleted)
 Loads the metadata and ID. More...
 
- Public Member Functions inherited from ESM::Land
 Land ()
 
 ~Land ()
 
void load (ESMReader &esm, bool &isDeleted)
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
void blank ()
 
void loadData (int flags, LandData *target=NULL) const
 
void unloadData () const
 
bool isDataLoaded (int flags) const
 Check if given data type is loaded. More...
 
void setDataLoaded (int flags)
 Sets the flags and creates a LandData if needed. More...
 
 Land (const Land &land)
 
Landoperator= (Land land)
 
void swap (Land &land)
 
const LandDatagetLandData (int flags) const
 
const LandDatagetLandData () const
 Return land data without loading first anything. Can return a 0-pointer. More...
 
LandDatagetLandData ()
 Return land data without loading first anything. Can return a 0-pointer. More...
 
void add (int flags)
 
void remove (int flags)
 

Static Public Member Functions

static std::string createUniqueRecordId (int x, int y)
 
static void parseUniqueRecordId (const std::string &id, int &x, int &y)
 
- Static Public Member Functions inherited from ESM::Land
static std::string getRecordType ()
 Return a string descriptor for this record type. Currently used for debugging / error logs only. More...
 

Additional Inherited Members

- Public Types inherited from ESM::Land
enum  {
  DATA_VNML = 1, DATA_VHGT = 2, DATA_WNAM = 4, DATA_VCLR = 8,
  DATA_VTEX = 16
}
 
typedef signed char VNML
 
- Public Attributes inherited from ESM::Land
int mFlags
 
int mX
 
int mY
 
int mPlugin
 
ESM_Context mContext
 
int mDataTypes
 
signed char mWnam [LAND_GLOBAL_MAP_LOD_SIZE]
 
- Static Public Attributes inherited from ESM::Land
static unsigned int sRecordId = REC_LAND
 
static const int DEFAULT_HEIGHT = -2048
 
static const int LAND_SIZE = 65
 
static const int REAL_SIZE = Constants::CellSizeInUnits
 
static const int LAND_NUM_VERTS = LAND_SIZE * LAND_SIZE
 
static const int HEIGHT_SCALE = 8
 
static const int LAND_TEXTURE_SIZE = 16
 
static const int LAND_NUM_TEXTURES = LAND_TEXTURE_SIZE * LAND_TEXTURE_SIZE
 
static const int LAND_GLOBAL_MAP_LOD_SIZE = 81
 

Detailed Description

Wrapper for Land record. Encodes X and Y cell index in the ID.

Todo:
Add worldspace support to the Land record.

Member Function Documentation

std::string CSMWorld::Land::createUniqueRecordId ( int  x,
int  y 
)
static

Here is the caller graph for this function:

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

Loads the metadata and ID.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSMWorld::Land::parseUniqueRecordId ( const std::string &  id,
int x,
int y 
)
static

Here is the caller graph for this function:


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