22 #include "object/task/task.h"
28 const int MAXPOINTS = 500;
79 bool EventProcess(
const Event &event);
81 Error Start(
Math::Vector goal,
float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode);
86 void WormFrame(
float rTime);
89 bool AdjustBuilding(
Math::Vector &pos,
float margin,
float &distance);
90 bool GetHotPoint(
CObject *pObj,
Math::Vector &pos,
bool bTake,
float distance,
float &suppl);
93 void ComputeFlyingRepulse(
float &dir);
106 void BitmapTerrain(
int minx,
int miny,
int maxx,
int maxy);
109 void BitmapSetCircle(
const Math::Vector &pos,
float radius);
110 void BitmapClearCircle(
const Math::Vector &pos,
float radius);
111 void BitmapSetDot(
int rank,
int x,
int y);
112 void BitmapClearDot(
int rank,
int x,
int y);
113 bool BitmapTestDot(
int rank,
int x,
int y);
120 TaskGotoCrash m_crashMode;
121 TaskGotoGoal m_goalMode;
122 TaskGotoPhase m_phase;
131 float m_wormLastTime;
132 float m_lastDistance;
137 unsigned char* m_bmArray;
138 int m_bmMinX, m_bmMinY;
139 int m_bmMaxX, m_bmMaxY;
143 char m_bmIter[MAXPOINTS+2];
152 float m_bmWatchDogTime;
2D point
Definition: point.h:46
Vector struct and related functions.
Error
Type of error or info message.
Definition: global.h:29
3D (3x1) vector
Definition: vector.h:49
Event sent by system, interface or game.
Definition: event.h:686
Definition: taskgoto.h:73