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

#include <loadland.hpp>

List of all members.

Classes

struct  LandData
struct  VHGT

Public Types

enum  {
  DATA_VNML = 1, DATA_VHGT = 2, DATA_WNAM = 4, DATA_VCLR = 8,
  DATA_VTEX = 16
}
typedef signed char VNML

Public Member Functions

 Land ()
 ~Land ()
void load (ESMReader &esm)
void save (ESMWriter &esm) const
void loadData (int flags)
void unloadData ()
bool isDataLoaded (int flags)

Public Attributes

int mFlags
int mX
int mY
int mPlugin
ESMReadermEsm
ESM_Context mContext
bool mHasData
int mDataTypes
int mDataLoaded
LandDatamLandData

Static Public Attributes

static unsigned int sRecordId = REC_LAND
static const int LAND_SIZE = 65
static const int REAL_SIZE = 8192
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

Private Member Functions

 Land (const Land &land)
Landoperator= (const Land &land)
bool condLoad (int flags, int dataFlag, void *ptr, unsigned int size)

Member Typedef Documentation

typedef signed char ESM::Land::VNML

Member Enumeration Documentation

anonymous enum
Enumerator:
DATA_VNML 
DATA_VHGT 
DATA_WNAM 
DATA_VCLR 
DATA_VTEX 

Constructor & Destructor Documentation

ESM::Land::Land ( const Land land) [private]

Member Function Documentation

bool ESM::Land::condLoad ( int  flags,
int  dataFlag,
void *  ptr,
unsigned int  size 
) [private]

Loads data and marks it as loaded

Returns:
true if data is actually loaded from file, false otherwise including the case when data is already loaded
bool ESM::Land::isDataLoaded ( int  flags) [inline]

Check if given data type is loaded

Todo:
reimplement this
void ESM::Land::load ( ESMReader esm)
void ESM::Land::loadData ( int  flags)

Actually loads data

Todo:
remove memory allocation when only defaults needed
Land& ESM::Land::operator= ( const Land land) [private]
void ESM::Land::save ( ESMWriter esm) const

Frees memory allocated for land data


Member Data Documentation

const int ESM::Land::HEIGHT_SCALE = 8 [static]
const int ESM::Land::LAND_SIZE = 65 [static]
const int ESM::Land::LAND_TEXTURE_SIZE = 16 [static]
const int ESM::Land::REAL_SIZE = 8192 [static]
unsigned int ESM::Land::sRecordId = REC_LAND [static]

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