AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "WorldModel.h"
Public Member Functions | |
WmoLiquid (uint32 width, uint32 height, const G3D::Vector3 &corner, uint32 type) | |
WmoLiquid (const WmoLiquid &other) | |
~WmoLiquid () | |
WmoLiquid & | operator= (const WmoLiquid &other) |
bool | GetLiquidHeight (const G3D::Vector3 &pos, float &liqHeight) const |
uint32 | GetType () const |
float * | GetHeightStorage () |
uint8 * | GetFlagsStorage () |
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 {0} |
number of tiles in x direction, each More... | |
uint32 | iTilesY {0} |
G3D::Vector3 | iCorner |
the lower corner More... | |
uint32 | iType {0} |
liquid type More... | |
float * | iHeight {nullptr} |
(tilesX + 1)*(tilesY + 1) height values More... | |
uint8 * | iFlags {nullptr} |
info if liquid tile is used More... | |
VMAP::WmoLiquid::WmoLiquid | ( | uint32 | width, |
uint32 | height, | ||
const G3D::Vector3 & | corner, | ||
uint32 | type | ||
) |
VMAP::WmoLiquid::WmoLiquid | ( | const WmoLiquid & | other | ) |
VMAP::WmoLiquid::~WmoLiquid | ( | ) |
|
inlineprivate |
Referenced by readFromFile().
uint32 VMAP::WmoLiquid::GetFileSize | ( | ) |
References iFlags, iTilesX, and iTilesY.
Referenced by VMAP::GroupModel::writeToFile().
|
inline |
References iFlags.
Referenced by MMAP::TerrainBuilder::loadVMap(), and VMAP::GroupModel_Raw::Read().
|
inline |
References iHeight.
Referenced by MMAP::TerrainBuilder::loadVMap(), and VMAP::GroupModel_Raw::Read().
bool VMAP::WmoLiquid::GetLiquidHeight | ( | const G3D::Vector3 & | pos, |
float & | liqHeight | ||
) | const |
References iCorner, iFlags, iHeight, iTilesX, iTilesY, and LIQUID_TILE_SIZE.
Referenced by VMAP::GroupModel::GetLiquidLevel().
|
inline |
References iType.
Referenced by VMAP::GroupModel::GetLiquidType(), and MMAP::TerrainBuilder::loadVMap().
References iCorner, iFlags, iHeight, iTilesX, iTilesY, and iType.
|
static |
References iCorner, iFlags, iHeight, iTilesX, iTilesY, iType, and WmoLiquid().
Referenced by VMAP::GroupModel::readFromFile().
bool VMAP::WmoLiquid::writeToFile | ( | FILE * | wf | ) |
|
private |
the lower corner
Referenced by GetLiquidHeight(), GetPosInfo(), operator=(), readFromFile(), and writeToFile().
|
private |
info if liquid tile is used
Referenced by GetFileSize(), GetFlagsStorage(), GetLiquidHeight(), operator=(), readFromFile(), writeToFile(), and ~WmoLiquid().
|
private |
(tilesX + 1)*(tilesY + 1) height values
Referenced by GetHeightStorage(), GetLiquidHeight(), operator=(), readFromFile(), writeToFile(), and ~WmoLiquid().
|
private |
number of tiles in x direction, each
Referenced by GetFileSize(), GetLiquidHeight(), GetPosInfo(), operator=(), readFromFile(), and writeToFile().
|
private |
Referenced by GetFileSize(), GetLiquidHeight(), GetPosInfo(), operator=(), readFromFile(), and writeToFile().
|
private |
liquid type
Referenced by GetType(), operator=(), readFromFile(), and writeToFile().