22 #include "object/task/task.h" 36 const int MAXPOINTS = 500;
86 bool EventProcess(
const Event &event)
override;
88 Error Start(
Math::Vector goal,
float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode);
89 Error IsEnded()
override;
93 void WormFrame(
float rTime);
96 bool AdjustBuilding(
Math::Vector &pos,
float margin,
float &distance);
97 bool GetHotPoint(
CObject *pObj,
Math::Vector &pos,
bool bTake,
float distance,
float &suppl);
100 void ComputeFlyingRepulse(
float &dir);
106 Error BeamExplore(
const Math::Vector &prevPos,
const Math::Vector &curPos,
const Math::Vector &goalPos,
float goalRadius,
float angle,
int nbDiv,
float step,
int i,
int nbIter);
112 void BitmapTerrain(
int minx,
int miny,
int maxx,
int maxy);
115 void BitmapSetCircle(
const Math::Vector &pos,
float radius);
116 void BitmapClearCircle(
const Math::Vector &pos,
float radius);
117 void BitmapSetDot(
int rank,
int x,
int y);
118 void BitmapClearDot(
int rank,
int x,
int y);
119 bool BitmapTestDot(
int rank,
int x,
int y);
124 float m_angle = 0.0f;
125 float m_altitude = 0.0f;
126 TaskGotoCrash m_crashMode = TGC_DEFAULT;
127 TaskGotoGoal m_goalMode = TGG_DEFAULT;
128 TaskGotoPhase m_phase = TGP_ADVANCE;
130 Error m_error = ERR_OK;
131 bool m_bTake =
false;
132 float m_stopLength = 0.0f;
135 bool m_bWorm =
false;
136 bool m_bApprox =
false;
137 float m_wormLastTime = 0.0f;
138 float m_lastDistance = 0.0f;
140 bool m_bmChanged =
true;
144 std::unique_ptr<unsigned char[]> m_bmArray;
145 int m_bmMinX = 0, m_bmMinY = 0;
146 int m_bmMaxX = 0, m_bmMaxY = 0;
150 char m_bmIter[MAXPOINTS+2] = {};
151 int m_bmIterCounter = 0;
152 CObject* m_bmCargoObject =
nullptr;
153 float m_bmFinalMove = 0.0f;
154 float m_bmFinalDist = 0.0f;
156 float m_bmTimeLimit = 0.0f;
159 float m_bmWatchDogTime = 0.0f;
161 float m_leakDelay = 0.0f;
162 float m_leakTime = 0.0f;
163 bool m_bLeakRecede =
false;
Definition: old_object.h:79
Namespace for (new) math code.
Definition: device.h:39
2D point
Definition: point.h:50
Vector struct and related functions.
3D (3x1) vector
Definition: vector.h:53
Event sent by system, interface or game.
Definition: event.h:735
Definition: taskgoto.h:80
Base class for all 3D in-game objects.
Definition: object.h:63