TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
adt_MH2O Struct Reference

#include <adt.h>

Classes

struct  adt_LIQUID
 

Public Member Functions

adt_liquid_headergetLiquidData (int x, int y)
 
float * getLiquidHeightMap (adt_liquid_header *h)
 
uint8getLiquidLightMap (adt_liquid_header *h)
 
uint32getLiquidFullLightMap (adt_liquid_header *h)
 
uint64 getLiquidShowMap (adt_liquid_header *h)
 

Public Attributes

union {
   uint32   fcc
 
   char   fcc_txt [4]
 
}; 
 
uint32 size
 
struct adt_MH2O::adt_LIQUID liquid [ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID]
 

Member Function Documentation

adt_liquid_header* adt_MH2O::getLiquidData ( int  x,
int  y 
)
inline
171  {
172  if (liquid[x][y].used && liquid[x][y].offsData1)
173  return (adt_liquid_header *)((uint8*)this + 8 + liquid[x][y].offsData1);
174  return 0;
175  }
struct adt_MH2O::adt_LIQUID liquid[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID]
Definition: adt.h:139
G3D::int16 y
Definition: Vector2int16.h:38
uint8_t uint8
Definition: Define.h:152
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the caller graph for this function:

uint32* adt_MH2O::getLiquidFullLightMap ( adt_liquid_header h)
inline
200  {
202  return 0;
203  if (h->offsData2b)
204  {
206  return (uint32 *)((uint8*)this + 8 + h->offsData2b);
207  return (uint32 *)((uint8*)this + 8 + h->offsData2b + (h->width+1)*(h->height+1)*4);
208  }
209  return 0;
210  }
uint16 formatFlags
Definition: adt.h:142
#define ADT_LIQUID_HEADER_NO_HIGHT
Definition: adt.h:137
uint32_t uint32
Definition: Define.h:150
uint8 width
Definition: adt.h:147
#define ADT_LIQUID_HEADER_FULL_LIGHT
Definition: adt.h:136
uint32 offsData2b
Definition: adt.h:150
uint8_t uint8
Definition: Define.h:152
uint8 height
Definition: adt.h:148
float* adt_MH2O::getLiquidHeightMap ( adt_liquid_header h)
inline
178  {
180  return 0;
181  if (h->offsData2b)
182  return (float *)((uint8*)this + 8 + h->offsData2b);
183  return 0;
184  }
uint16 formatFlags
Definition: adt.h:142
#define ADT_LIQUID_HEADER_NO_HIGHT
Definition: adt.h:137
uint32 offsData2b
Definition: adt.h:150
uint8_t uint8
Definition: Define.h:152

+ Here is the caller graph for this function:

uint8* adt_MH2O::getLiquidLightMap ( adt_liquid_header h)
inline
187  {
189  return 0;
190  if (h->offsData2b)
191  {
193  return (uint8 *)((uint8*)this + 8 + h->offsData2b);
194  return (uint8 *)((uint8*)this + 8 + h->offsData2b + (h->width+1)*(h->height+1)*4);
195  }
196  return 0;
197  }
uint16 formatFlags
Definition: adt.h:142
#define ADT_LIQUID_HEADER_NO_HIGHT
Definition: adt.h:137
uint8 width
Definition: adt.h:147
#define ADT_LIQUID_HEADER_FULL_LIGHT
Definition: adt.h:136
uint32 offsData2b
Definition: adt.h:150
uint8_t uint8
Definition: Define.h:152
uint8 height
Definition: adt.h:148

+ Here is the caller graph for this function:

uint64 adt_MH2O::getLiquidShowMap ( adt_liquid_header h)
inline
213  {
214  if (h->offsData2a)
215  return *((uint64 *)((uint8*)this + 8 + h->offsData2a));
216  else
217  return 0xFFFFFFFFFFFFFFFFuLL;
218  }
uint32 offsData2a
Definition: adt.h:149
uint64_t uint64
Definition: Define.h:149
uint8_t uint8
Definition: Define.h:152

+ Here is the caller graph for this function:

Member Data Documentation

union { ... }
uint32 adt_MH2O::fcc
char adt_MH2O::fcc_txt[4]
uint32 adt_MH2O::size

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