19 #ifndef _IVMAPMANAGER_H
20 #define _IVMAPMANAGER_H
41 #define VMAP_INVALID_HEIGHT -100000.0f // for check
42 #define VMAP_INVALID_HEIGHT_VALUE -200000.0f // real assigned value in unknown height case
56 virtual int loadMap(
const char* pBasePath,
unsigned int pMapId,
int x,
int y) = 0;
58 virtual bool existsMap(
const char* pBasePath,
unsigned int pMapId,
int x,
int y) = 0;
60 virtual void unloadMap(
unsigned int pMapId,
int x,
int y) = 0;
61 virtual void unloadMap(
unsigned int pMapId) = 0;
63 virtual bool isInLineOfSight(
unsigned int pMapId,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2) = 0;
64 virtual float getHeight(
unsigned int pMapId,
float x,
float y,
float z,
float maxSearchDist) = 0;
69 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;
73 virtual bool processCommand(
char *pCommand)= 0;
90 virtual std::string getDirFileName(
unsigned int pMapId,
int x,
int y)
const =0;
95 virtual bool getAreaInfo(
unsigned int pMapId,
float x,
float y,
float &
z,
uint32 &
flags,
int32 &adtId,
int32 &rootId,
int32 &groupId)
const=0;
96 virtual bool GetLiquidLevel(
uint32 pMapId,
float x,
float y,
float z,
uint8 ReqLiquidType,
float &level,
float &
floor,
uint32 &type)
const=0;
virtual ~IVMapManager(void)
Definition: IVMapManager.h:54
void setEnableLineOfSightCalc(bool pVal)
Definition: IVMapManager.h:79
IVMapManager()
Definition: IVMapManager.h:52
bool iEnableHeightCalc
Definition: IVMapManager.h:49
static Vector3int16 floor(const Vector3 &v)
Definition: IVMapManager.h:38
bool iEnableLineOfSightCalc
Definition: IVMapManager.h:48
Definition: IVMapManager.h:31
Definition: IVMapManager.h:36
VMAP_LOAD_RESULT
Definition: IVMapManager.h:34
#define true
Definition: CascPort.h:17
bool isLineOfSightCalcEnabled() const
Definition: IVMapManager.h:86
G3D::int16 z
Definition: Vector3int16.h:46
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
Definition: IVMapManager.h:45
#define TC_COMMON_API
Definition: Define.h:116
bool isHeightCalcEnabled() const
Definition: IVMapManager.h:87
void setEnableHeightCalc(bool pVal)
Definition: IVMapManager.h:84
bool isMapLoadingEnabled() const
Definition: IVMapManager.h:88
Definition: IVMapManager.h:37
uint8_t uint8
Definition: Define.h:152
uint8 flags
Definition: DisableMgr.cpp:44
G3D::int16 x
Definition: Vector2int16.h:37
static unsigned short getHeight(const float fx, const float fy, const float fz, const float, const float ics, const float ch, const rcHeightPatch &hp)
Definition: RecastMeshDetail.cpp:203