AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VMAP::IVMapMgr Class Referenceabstract

#include "IVMapMgr.h"

Inheritance diagram for VMAP::IVMapMgr:
VMAP::VMapMgr2

Public Member Functions

 IVMapMgr ()
 
virtual ~IVMapMgr ()=default
 
virtual int loadMap (const char *pBasePath, unsigned int pMapId, int x, int y)=0
 
virtual LoadResult existsMap (const char *pBasePath, unsigned int pMapId, int x, int y)=0
 
virtual void unloadMap (unsigned int pMapId, int x, int y)=0
 
virtual void unloadMap (unsigned int pMapId)=0
 
virtual bool isInLineOfSight (unsigned int pMapId, float x1, float y1, float z1, float x2, float y2, float z2, ModelIgnoreFlags ignoreFlags)=0
 
virtual float getHeight (unsigned int pMapId, float x, float y, float z, float maxSearchDist)=0
 
virtual bool GetObjectHitPos (unsigned int pMapId, float x1, float y1, float z1, float x2, float y2, float z2, float &rx, float &ry, float &rz, float pModifyDist)=0
 
virtual bool processCommand (char *pCommand)=0
 
void setEnableLineOfSightCalc (bool pVal)
 
void setEnableHeightCalc (bool pVal)
 
bool isLineOfSightCalcEnabled () const
 
bool isHeightCalcEnabled () const
 
bool isMapLoadingEnabled () const
 
virtual std::string getDirFileName (unsigned int pMapId, int x, int y) const =0
 
virtual bool GetAreaAndLiquidData (uint32 mapId, float x, float y, float z, Optional< uint8 > reqLiquidType, AreaAndLiquidData &data) const =0
 

Private Attributes

bool iEnableLineOfSightCalc {true}
 
bool iEnableHeightCalc {true}
 

Detailed Description

Constructor & Destructor Documentation

◆ IVMapMgr()

VMAP::IVMapMgr::IVMapMgr ( )
inline
87{ }

◆ ~IVMapMgr()

virtual VMAP::IVMapMgr::~IVMapMgr ( )
virtualdefault

Member Function Documentation

◆ existsMap()

virtual LoadResult VMAP::IVMapMgr::existsMap ( const char *  pBasePath,
unsigned int  pMapId,
int  x,
int  y 
)
pure virtual

Implemented in VMAP::VMapMgr2.

◆ GetAreaAndLiquidData()

virtual bool VMAP::IVMapMgr::GetAreaAndLiquidData ( uint32  mapId,
float  x,
float  y,
float  z,
Optional< uint8 reqLiquidType,
AreaAndLiquidData data 
) const
pure virtual

Query world model area info.

Parameters
zgets adjusted to the ground height for which this are info is valid

Implemented in VMAP::VMapMgr2.

Referenced by Map::GetAreaInfo(), Map::GetFullTerrainStatusForPosition(), and Map::GetLiquidData().

◆ getDirFileName()

virtual std::string VMAP::IVMapMgr::getDirFileName ( unsigned int  pMapId,
int  x,
int  y 
) const
pure virtual

Implemented in VMAP::VMapMgr2.

◆ getHeight()

virtual float VMAP::IVMapMgr::getHeight ( unsigned int  pMapId,
float  x,
float  y,
float  z,
float  maxSearchDist 
)
pure virtual

Implemented in VMAP::VMapMgr2.

Referenced by Map::GetHeight().

◆ GetObjectHitPos()

virtual bool VMAP::IVMapMgr::GetObjectHitPos ( unsigned int  pMapId,
float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
float &  rx,
float &  ry,
float &  rz,
float  pModifyDist 
)
pure virtual

test if we hit an object. return true if we hit one. rx, ry, rz will hold the hit position or the dest position, if no intersection was found return a position, that is pReduceDist closer to the origin

Implemented in VMAP::VMapMgr2.

◆ isHeightCalcEnabled()

bool VMAP::IVMapMgr::isHeightCalcEnabled ( ) const
inline
122{ return (iEnableHeightCalc); }
bool iEnableHeightCalc
Definition IVMapMgr.h:84

References iEnableHeightCalc.

Referenced by VMAP::VMapMgr2::getHeight(), and server_commandscript::HandleServerDebugCommand().

◆ isInLineOfSight()

virtual bool VMAP::IVMapMgr::isInLineOfSight ( unsigned int  pMapId,
float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
ModelIgnoreFlags  ignoreFlags 
)
pure virtual

Implemented in VMAP::VMapMgr2.

◆ isLineOfSightCalcEnabled()

bool VMAP::IVMapMgr::isLineOfSightCalcEnabled ( ) const
inline

◆ isMapLoadingEnabled()

bool VMAP::IVMapMgr::isMapLoadingEnabled ( ) const
inline

◆ loadMap()

virtual int VMAP::IVMapMgr::loadMap ( const char *  pBasePath,
unsigned int  pMapId,
int  x,
int  y 
)
pure virtual

Implemented in VMAP::VMapMgr2.

Referenced by MMAP::TerrainBuilder::loadVMap().

◆ processCommand()

virtual bool VMAP::IVMapMgr::processCommand ( char *  pCommand)
pure virtual

send debug commands

Implemented in VMAP::VMapMgr2.

◆ setEnableHeightCalc()

void VMAP::IVMapMgr::setEnableHeightCalc ( bool  pVal)
inline

Enable/disable model height calculation It is enabled by default. If it is enabled in mid game the maps have to loaded manualy

119{ iEnableHeightCalc = pVal; }

References iEnableHeightCalc.

Referenced by World::LoadConfigSettings().

◆ setEnableLineOfSightCalc()

void VMAP::IVMapMgr::setEnableLineOfSightCalc ( bool  pVal)
inline

Enable/disable LOS calculation It is enabled by default. If it is enabled in mid game the maps have to loaded manualy

114{ iEnableLineOfSightCalc = pVal; }

References iEnableLineOfSightCalc.

Referenced by World::LoadConfigSettings().

◆ unloadMap() [1/2]

virtual void VMAP::IVMapMgr::unloadMap ( unsigned int  pMapId)
pure virtual

Implemented in VMAP::VMapMgr2.

◆ unloadMap() [2/2]

virtual void VMAP::IVMapMgr::unloadMap ( unsigned int  pMapId,
int  x,
int  y 
)
pure virtual

Implemented in VMAP::VMapMgr2.

Referenced by MMAP::TerrainBuilder::loadVMap().

Member Data Documentation

◆ iEnableHeightCalc

bool VMAP::IVMapMgr::iEnableHeightCalc {true}
private

◆ iEnableLineOfSightCalc

bool VMAP::IVMapMgr::iEnableLineOfSightCalc {true}
private

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