TrinityCore
VMAP::IVMapManager Class Referenceabstract

#include <IVMapManager.h>

+ Inheritance diagram for VMAP::IVMapManager:

Public Member Functions

 IVMapManager ()
 
virtual ~IVMapManager (void)
 
virtual LoadResult loadMap (char const *pBasePath, unsigned int pMapId, int x, int y)=0
 
virtual LoadResult existsMap (char const *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 (unsigned int mapId, float x, float y, float z, Optional< uint8 > reqLiquidType, AreaAndLiquidData &data) const =0
 

Private Attributes

bool iEnableLineOfSightCalc
 
bool iEnableHeightCalc
 

Detailed Description

Definition at line 72 of file IVMapManager.h.

Constructor & Destructor Documentation

◆ IVMapManager()

VMAP::IVMapManager::IVMapManager ( )
inline

Definition at line 79 of file IVMapManager.h.

◆ ~IVMapManager()

virtual VMAP::IVMapManager::~IVMapManager ( void  )
inlinevirtual

Definition at line 81 of file IVMapManager.h.

Member Function Documentation

◆ existsMap()

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

Implemented in VMAP::VMapManager2.

◆ getAreaAndLiquidData()

virtual bool VMAP::IVMapManager::getAreaAndLiquidData ( unsigned int  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
+ Here is the caller graph for this function:

◆ getDirFileName()

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

Implemented in VMAP::VMapManager2.

◆ getHeight()

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

Implemented in VMAP::VMapManager2.

+ Here is the caller graph for this function:

◆ getObjectHitPos()

virtual bool VMAP::IVMapManager::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::VMapManager2.

◆ isHeightCalcEnabled()

bool VMAP::IVMapManager::isHeightCalcEnabled ( ) const
inline

Definition at line 114 of file IVMapManager.h.

+ Here is the caller graph for this function:

◆ isInLineOfSight()

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

Implemented in VMAP::VMapManager2.

◆ isLineOfSightCalcEnabled()

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

Definition at line 113 of file IVMapManager.h.

+ Here is the caller graph for this function:

◆ isMapLoadingEnabled()

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

Definition at line 115 of file IVMapManager.h.

+ Here is the caller graph for this function:

◆ loadMap()

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

Implemented in VMAP::VMapManager2.

◆ processCommand()

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

send debug commands

Implemented in VMAP::VMapManager2.

◆ setEnableHeightCalc()

void VMAP::IVMapManager::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

Definition at line 111 of file IVMapManager.h.

+ Here is the caller graph for this function:

◆ setEnableLineOfSightCalc()

void VMAP::IVMapManager::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

Definition at line 106 of file IVMapManager.h.

+ Here is the caller graph for this function:

◆ unloadMap() [1/2]

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

Implemented in VMAP::VMapManager2.

◆ unloadMap() [2/2]

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

Implemented in VMAP::VMapManager2.

Member Data Documentation

◆ iEnableHeightCalc

bool VMAP::IVMapManager::iEnableHeightCalc
private

Definition at line 76 of file IVMapManager.h.

◆ iEnableLineOfSightCalc

bool VMAP::IVMapManager::iEnableLineOfSightCalc
private

Definition at line 75 of file IVMapManager.h.


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