Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CTaskGoto Class Reference
Inheritance diagram for CTaskGoto:
Inheritance graph
[legend]

Public Member Functions

 CTaskGoto (CObject *object)
bool EventProcess (const Event &event)
Error Start (Math::Vector goal, float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode)
Error IsEnded ()
- Public Member Functions inherited from CTask
 CTask (CObject *object)
virtual bool IsBusy ()
virtual bool Abort ()

Protected Member Functions

CObject * WormSearch (Math::Vector &impact)
void WormFrame (float rTime)
CObject * SearchTarget (Math::Vector pos, float margin)
bool AdjustTarget (CObject *pObj, Math::Vector &pos, float &distance)
bool AdjustBuilding (Math::Vector &pos, float margin, float &distance)
bool GetHotPoint (CObject *pObj, Math::Vector &pos, bool bTake, float distance, float &suppl)
bool LeakSearch (Math::Vector &pos, float &delay)
void ComputeRepulse (Math::Point &dir)
void ComputeFlyingRepulse (float &dir)
int BeamShortcut ()
void BeamStart ()
void BeamInit ()
Error BeamSearch (const Math::Vector &start, const Math::Vector &goal, float goalRadius)
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)
Math::Vector BeamPoint (const Math::Vector &startPoint, const Math::Vector &goalPoint, float angle, float step)
void BitmapDebug (const Math::Vector &min, const Math::Vector &max, const Math::Vector &start, const Math::Vector &goal)
bool BitmapTestLine (const Math::Vector &start, const Math::Vector &goal, float stepAngle, bool bSecond)
void BitmapObject ()
void BitmapTerrain (const Math::Vector &min, const Math::Vector &max)
void BitmapTerrain (int minx, int miny, int maxx, int maxy)
bool BitmapOpen ()
bool BitmapClose ()
void BitmapSetCircle (const Math::Vector &pos, float radius)
void BitmapClearCircle (const Math::Vector &pos, float radius)
void BitmapSetDot (int rank, int x, int y)
void BitmapClearDot (int rank, int x, int y)
bool BitmapTestDot (int rank, int x, int y)

Protected Attributes

Math::Vector m_goal
Math::Vector m_goalObject
float m_angle
float m_altitude
TaskGotoCrash m_crashMode
TaskGotoGoal m_goalMode
TaskGotoPhase m_phase
int m_try
Error m_error
bool m_bTake
float m_stopLength
float m_time
Math::Vector m_pos
bool m_bWorm
bool m_bApprox
float m_wormLastTime
float m_lastDistance
int m_bmSize
int m_bmOffset
int m_bmLine
unsigned char * m_bmArray
int m_bmMinX
int m_bmMinY
int m_bmMaxX
int m_bmMaxY
int m_bmTotal
int m_bmIndex
Math::Vector m_bmPoints [MAXPOINTS+2]
char m_bmIter [MAXPOINTS+2]
int m_bmIterCounter
CObject * m_bmFretObject
float m_bmFinalMove
float m_bmFinalDist
Math::Vector m_bmFinalPos
float m_bmTimeLimit
int m_bmStep
Math::Vector m_bmWatchDogPos
float m_bmWatchDogTime
Math::Vector m_leakPos
float m_leakDelay
float m_leakTime
bool m_bLeakRecede
- Protected Attributes inherited from CTask
Gfx::CEngine * m_engine
Gfx::CLightManager * m_lightMan
Gfx::CParticle * m_particle
Gfx::CTerrain * m_terrain
Gfx::CWater * m_water
Gfx::CCamera * m_camera
CMotion * m_motion
CBrain * m_brain
CPhysics * m_physics
CObject * m_object
CRobotMain * m_main
CSoundInterface * m_sound

The documentation for this class was generated from the following files: