TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VMAP::IVMapManager Class Referenceabstract

#include <IVMapManager.h>

Public Member Functions

 IVMapManager ()
 
virtual ~IVMapManager (void)
 
virtual int loadMap (const char *pBasePath, unsigned int pMapId, int x, int y)=0
 
virtual bool 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)=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 getAreaInfo (unsigned int pMapId, float x, float y, float &z, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const =0
 
virtual bool GetLiquidLevel (uint32 pMapId, float x, float y, float z, uint8 ReqLiquidType, float &level, float &floor, uint32 &type) const =0
 

Private Attributes

bool iEnableLineOfSightCalc
 
bool iEnableHeightCalc
 

Constructor & Destructor Documentation

VMAP::IVMapManager::IVMapManager ( )
inline
bool iEnableHeightCalc
Definition: IVMapManager.h:49
bool iEnableLineOfSightCalc
Definition: IVMapManager.h:48
virtual VMAP::IVMapManager::~IVMapManager ( void  )
inlinevirtual
54 { }

Member Function Documentation

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

Implemented in VMAP::VMapManager2.

virtual bool VMAP::IVMapManager::getAreaInfo ( unsigned int  pMapId,
float  x,
float  y,
float &  z,
uint32 flags,
int32 adtId,
int32 rootId,
int32 groupId 
) 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::VMapManager2.

+ Here is the caller graph for this function:

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

Implemented in VMAP::VMapManager2.

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:

virtual bool VMAP::IVMapManager::GetLiquidLevel ( uint32  pMapId,
float  x,
float  y,
float  z,
uint8  ReqLiquidType,
float &  level,
float &  floor,
uint32 type 
) const
pure virtual

Implemented in VMAP::VMapManager2.

+ Here is the caller graph for this function:

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.

+ Here is the caller graph for this function:

bool VMAP::IVMapManager::isHeightCalcEnabled ( ) const
inline
87 { return(iEnableHeightCalc); }
bool iEnableHeightCalc
Definition: IVMapManager.h:49

+ Here is the caller graph for this function:

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

Implemented in VMAP::VMapManager2.

+ Here is the caller graph for this function:

bool VMAP::IVMapManager::isLineOfSightCalcEnabled ( ) const
inline
86 { return(iEnableLineOfSightCalc); }
bool iEnableLineOfSightCalc
Definition: IVMapManager.h:48

+ Here is the caller graph for this function:

bool VMAP::IVMapManager::isMapLoadingEnabled ( ) const
inline
bool iEnableHeightCalc
Definition: IVMapManager.h:49
bool iEnableLineOfSightCalc
Definition: IVMapManager.h:48

+ Here is the caller graph for this function:

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

Implemented in VMAP::VMapManager2.

+ Here is the caller graph for this function:

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

send debug commands

Implemented in VMAP::VMapManager2.

+ Here is the caller graph for this function:

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

84 { iEnableHeightCalc = pVal; }
bool iEnableHeightCalc
Definition: IVMapManager.h:49

+ Here is the caller graph for this function:

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

79 { iEnableLineOfSightCalc = pVal; }
bool iEnableLineOfSightCalc
Definition: IVMapManager.h:48

+ Here is the caller graph for this function:

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

Implemented in VMAP::VMapManager2.

+ Here is the caller graph for this function:

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

Implemented in VMAP::VMapManager2.

Member Data Documentation

bool VMAP::IVMapManager::iEnableHeightCalc
private
bool VMAP::IVMapManager::iEnableLineOfSightCalc
private

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