23 #include "object/task/task.h"
32 const int MAXPOINTS = 500;
82 bool EventProcess(
const Event &event)
override;
84 Error Start(
Math::Vector goal,
float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode);
85 Error IsEnded()
override;
89 void WormFrame(
float rTime);
92 bool AdjustBuilding(
Math::Vector &pos,
float margin,
float &distance);
93 bool GetHotPoint(
CObject *pObj,
Math::Vector &pos,
bool bTake,
float distance,
float &suppl);
96 void ComputeFlyingRepulse(
float &dir);
102 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);
109 void BitmapTerrain(
int minx,
int miny,
int maxx,
int maxy);
112 void BitmapSetCircle(
const Math::Vector &pos,
float radius);
113 void BitmapClearCircle(
const Math::Vector &pos,
float radius);
114 void BitmapSetDot(
int rank,
int x,
int y);
115 void BitmapClearDot(
int rank,
int x,
int y);
116 bool BitmapTestDot(
int rank,
int x,
int y);
121 float m_angle = 0.0f;
122 float m_altitude = 0.0f;
123 TaskGotoCrash m_crashMode = TGC_DEFAULT;
124 TaskGotoGoal m_goalMode = TGG_DEFAULT;
125 TaskGotoPhase m_phase = TGP_ADVANCE;
127 Error m_error = ERR_OK;
128 bool m_bTake =
false;
129 float m_stopLength = 0.0f;
132 bool m_bWorm =
false;
133 bool m_bApprox =
false;
134 float m_wormLastTime = 0.0f;
135 float m_lastDistance = 0.0f;
140 std::unique_ptr<unsigned char[]> m_bmArray;
141 int m_bmMinX = 0, m_bmMinY = 0;
142 int m_bmMaxX = 0, m_bmMaxY = 0;
146 char m_bmIter[MAXPOINTS+2] = {};
147 int m_bmIterCounter = 0;
148 CObject* m_bmCargoObject =
nullptr;
149 float m_bmFinalMove = 0.0f;
150 float m_bmFinalDist = 0.0f;
152 float m_bmTimeLimit = 0.0f;
155 float m_bmWatchDogTime = 0.0f;
157 float m_leakDelay = 0.0f;
158 float m_leakTime = 0.0f;
159 bool m_bLeakRecede =
false;
Definition: old_object.h:77
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:709
Definition: taskgoto.h:76
Base class for all 3D in-game objects.
Definition: object.h:59