summaryrefslogtreecommitdiffstats
path: root/src/taskfireant.h
diff options
context:
space:
mode:
authoradiblol <adiblol@1tbps.org>2012-03-08 19:32:05 +0100
committeradiblol <adiblol@1tbps.org>2012-03-08 19:32:05 +0100
commita4c804b49ec872b71bd5a0167c3ad45704a3cc30 (patch)
tree8c931235247d662ca46a99695beb328fdfc8e8a8 /src/taskfireant.h
downloadcolobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.tar.gz
colobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.tar.bz2
colobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.zip
Initial commit, Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
Diffstat (limited to 'src/taskfireant.h')
-rw-r--r--src/taskfireant.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/taskfireant.h b/src/taskfireant.h
new file mode 100644
index 0000000..d251b9b
--- /dev/null
+++ b/src/taskfireant.h
@@ -0,0 +1,53 @@
+// taskfireant.h
+
+#ifndef _TASKFIREANT_H_
+#define _TASKTIREANT_H_
+
+
+class CInstanceManager;
+class CTerrain;
+class CBrain;
+class CPhysics;
+class CObject;
+
+
+
+enum TaskFireAnt
+{
+ TFA_NULL = 0, // rien à faire
+ TFA_TURN = 1, // tourne
+ TFA_PREPARE = 2, // prépare position de tir
+ TFA_FIRE = 3, // tir
+ TFA_TERMINATE = 4, // termine position de tir
+};
+
+
+
+class CTaskFireAnt : public CTask
+{
+public:
+ CTaskFireAnt(CInstanceManager* iMan, CObject* object);
+ ~CTaskFireAnt();
+
+ BOOL EventProcess(const Event &event);
+
+ Error Start(D3DVECTOR impact);
+ Error IsEnded();
+ BOOL Abort();
+
+protected:
+
+protected:
+ D3DVECTOR m_impact;
+ TaskFireAnt m_phase;
+ float m_progress;
+ float m_speed;
+ float m_angle;
+ BOOL m_bError;
+ BOOL m_bFire;
+ float m_time;
+ float m_lastParticule;
+};
+
+
+#endif //_TASKFIREANT_H_