30 #include "engines/icb/common/px_rcutypes.h" 34 #define INTEGER_WALKAREA_API_SCHEMA 1 37 __point(
void) : x(0), y(0), z(0) { ; }
38 __point(int32 X, int32 Y, int32 Z) : x(X), y(Y), z(Z) { ; }
47 char cameraCluster[8];
73 uint32 GetSchema(
void)
const {
return schema; }
74 uint32 GetNoAreas(
void)
const {
return noAreas; }
77 inline const __aWalkArea *GetWalkArea(uint32 number)
const;
78 inline uint32 GetNoPoints(uint32 number)
const;
79 inline int32 GetBox_X(uint32 number)
const;
80 inline int32 GetBox_Y(uint32 number)
const;
81 inline int32 GetBox_Z(uint32 number)
const;
82 inline int32 GetBox_W(uint32 number)
const;
83 inline int32 GetBox_H(uint32 number)
const;
85 bool8 GetAreaName(uint32 number,
const char *&name)
const;
86 bool8 GetCluster(uint32 number,
const char *&cluster)
const;
87 bool8 GetPoint(uint32 area, uint32 number,
__point &point)
const;
88 bool8 GetCameraName(uint32 number,
const char *&name)
const;
92 uint32 offsetTable[1];
95 inline const __aWalkArea *INTEGER_WalkAreaFile::GetWalkArea(uint32 number)
const {
return ((
const __aWalkArea *)(((
const char *)
this) + offsetTable[number])); }
97 inline uint32 INTEGER_WalkAreaFile::GetNoPoints(uint32 number)
const {
return (GetWalkArea(number)->noPoints); }
99 inline int32 INTEGER_WalkAreaFile::GetBox_X(uint32 number)
const {
return (GetWalkArea(number)->x); }
101 inline int32 INTEGER_WalkAreaFile::GetBox_Y(uint32 number)
const {
return (GetWalkArea(number)->y); }
103 inline int32 INTEGER_WalkAreaFile::GetBox_Z(uint32 number)
const {
return (GetWalkArea(number)->z); }
105 inline int32 INTEGER_WalkAreaFile::GetBox_W(uint32 number)
const {
return (GetWalkArea(number)->w); }
107 inline int32 INTEGER_WalkAreaFile::GetBox_H(uint32 number)
const {
return (GetWalkArea(number)->h); }
109 inline bool8 INTEGER_WalkAreaFile::GetAreaName(uint32 number,
const char *&name)
const {
110 if (number >= noAreas)
113 name = GetWalkArea(number)->name;
118 inline bool8 INTEGER_WalkAreaFile::GetCluster(uint32 number,
const char *&cluster)
const {
119 if (number >= noAreas)
122 cluster = GetWalkArea(number)->cameraCluster;
127 inline bool8 INTEGER_WalkAreaFile::GetPoint(uint32 area, uint32 number,
__point &point)
const {
131 point.x = GetWalkArea(area)->points[number].x;
132 point.y = GetWalkArea(area)->points[number].y;
133 point.z = GetWalkArea(area)->points[number].z;
138 inline bool8 INTEGER_WalkAreaFile::GetCameraName(uint32 number,
const char *&name)
const {
139 if (number >= noAreas)
143 name = (
const char *)&GetWalkArea(number)->points[GetNoPoints(number)];
Definition: px_walkarea_integer.h:63
Definition: px_walkarea_integer.h:36
Definition: px_walkarea_integer.h:45