TrinityCore
VMAP::WmoLiquid Class Reference

#include <WorldModel.h>

Public Member Functions

 WmoLiquid (uint32 width, uint32 height, G3D::Vector3 const &corner, uint32 type)
 
 WmoLiquid (WmoLiquid const &other)
 
 ~WmoLiquid ()
 
WmoLiquidoperator= (WmoLiquid const &other)
 
bool GetLiquidHeight (G3D::Vector3 const &pos, float &liqHeight) const
 
uint32 GetType () const
 
float * GetHeightStorage ()
 
uint8GetFlagsStorage ()
 
float const * GetHeightStorage () const
 
uint8 const * GetFlagsStorage () const
 
uint32 GetFileSize ()
 
bool writeToFile (FILE *wf)
 
void getPosInfo (uint32 &tilesX, uint32 &tilesY, G3D::Vector3 &corner) const
 

Static Public Member Functions

static bool readFromFile (FILE *rf, WmoLiquid *&liquid)
 

Private Member Functions

 WmoLiquid ()
 

Private Attributes

uint32 iTilesX
 number of tiles in x direction, each More...
 
uint32 iTilesY
 
G3D::Vector3 iCorner
 the lower corner More...
 
uint32 iType
 liquid type More...
 
float * iHeight
 (tilesX + 1)*(tilesY + 1) height values More...
 
uint8iFlags
 info if liquid tile is used More...
 

Detailed Description

Definition at line 52 of file WorldModel.h.

Constructor & Destructor Documentation

◆ WmoLiquid() [1/3]

VMAP::WmoLiquid::WmoLiquid ( uint32  width,
uint32  height,
G3D::Vector3 const &  corner,
uint32  type 
)

◆ WmoLiquid() [2/3]

VMAP::WmoLiquid::WmoLiquid ( WmoLiquid const &  other)

Definition at line 119 of file WorldModel.cpp.

◆ ~WmoLiquid()

VMAP::WmoLiquid::~WmoLiquid ( )

Definition at line 124 of file WorldModel.cpp.

◆ WmoLiquid() [3/3]

VMAP::WmoLiquid::WmoLiquid ( )
inlineprivate

Definition at line 70 of file WorldModel.h.

+ Here is the caller graph for this function:

Member Function Documentation

◆ GetFileSize()

uint32 VMAP::WmoLiquid::GetFileSize ( )

Definition at line 213 of file WorldModel.cpp.

+ Here is the caller graph for this function:

◆ GetFlagsStorage() [1/2]

uint8 * VMAP::WmoLiquid::GetFlagsStorage ( )
inline

Definition at line 62 of file WorldModel.h.

+ Here is the caller graph for this function:

◆ GetFlagsStorage() [2/2]

uint8 const * VMAP::WmoLiquid::GetFlagsStorage ( ) const
inline

Definition at line 64 of file WorldModel.h.

◆ GetHeightStorage() [1/2]

float * VMAP::WmoLiquid::GetHeightStorage ( )
inline

Definition at line 61 of file WorldModel.h.

+ Here is the caller graph for this function:

◆ GetHeightStorage() [2/2]

float const * VMAP::WmoLiquid::GetHeightStorage ( ) const
inline

Definition at line 63 of file WorldModel.h.

◆ GetLiquidHeight()

bool VMAP::WmoLiquid::GetLiquidHeight ( G3D::Vector3 const &  pos,
float &  liqHeight 
) const

Definition at line 157 of file WorldModel.cpp.

+ Here is the caller graph for this function:

◆ getPosInfo()

void VMAP::WmoLiquid::getPosInfo ( uint32 tilesX,
uint32 tilesY,
G3D::Vector3 &  corner 
) const

Definition at line 281 of file WorldModel.cpp.

+ Here is the caller graph for this function:

◆ GetType()

uint32 VMAP::WmoLiquid::GetType ( ) const
inline

Definition at line 60 of file WorldModel.h.

+ Here is the caller graph for this function:

◆ operator=()

WmoLiquid & VMAP::WmoLiquid::operator= ( WmoLiquid const &  other)

Definition at line 130 of file WorldModel.cpp.

◆ readFromFile()

bool VMAP::WmoLiquid::readFromFile ( FILE *  rf,
WmoLiquid *&  liquid 
)
static

Definition at line 245 of file WorldModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeToFile()

bool VMAP::WmoLiquid::writeToFile ( FILE *  wf)

Definition at line 221 of file WorldModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ iCorner

G3D::Vector3 VMAP::WmoLiquid::iCorner
private

the lower corner

Definition at line 73 of file WorldModel.h.

◆ iFlags

uint8* VMAP::WmoLiquid::iFlags
private

info if liquid tile is used

Definition at line 76 of file WorldModel.h.

◆ iHeight

float* VMAP::WmoLiquid::iHeight
private

(tilesX + 1)*(tilesY + 1) height values

Definition at line 75 of file WorldModel.h.

◆ iTilesX

uint32 VMAP::WmoLiquid::iTilesX
private

number of tiles in x direction, each

Definition at line 71 of file WorldModel.h.

◆ iTilesY

uint32 VMAP::WmoLiquid::iTilesY
private

Definition at line 72 of file WorldModel.h.

◆ iType

uint32 VMAP::WmoLiquid::iType
private

liquid type

Definition at line 74 of file WorldModel.h.


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