22 #ifndef TRECISION_PATHFINDING_H 23 #define TRECISION_PATHFINDING_H 25 #include "trecision/struct.h" 26 #include "common/serializer.h" 64 _nearPanel1 = _nearPanel2 = 0;
95 float _x3d, _y3d, _z3d;
103 bool pointInside(
int pan,
float x,
float z)
const;
106 void invPointProject(
int x,
int y);
107 bool intersectLinePanel(
SPan *p,
float x,
float y,
float z);
108 bool intersectLineFloor(
float x,
float y,
float z);
109 bool intersectLineLine(
float xa,
float ya,
float xb,
float yb,
float xc,
float yc,
float xd,
float yd);
110 void findShortPath();
111 float evalPath(
int a,
float destX,
float destZ,
int nearP);
112 void lookAt(
float x,
float z);
113 void buildFramelist();
115 bool findAttachedPanel(int16 srcPanel, int16 destPanel);
127 int8 _characterGoToPosition;
128 bool _characterInMovement;
130 SStep _step[MAXSTEP];
131 SPan _panel[MAXPANELSINROOM];
134 void setPosition(
int num);
135 void goToPosition(
int num);
139 void reset(uint16 idx,
float px,
float pz,
float theta);
140 void whereIs(
int px,
int py);
143 int getActorPos()
const {
return _actorPos; }
144 void setForcedActorPos(
int actorPos) { _forcedActorPos = actorPos; }
Definition: trecision.h:112
Definition: pathfinding3d.h:69
Definition: serializer.h:79
Definition: pathfinding3d.h:30
Definition: pathfinding3d.h:49
Definition: pathfinding3d.h:89
Definition: pathfinding3d.h:35