From a4c804b49ec872b71bd5a0167c3ad45704a3cc30 Mon Sep 17 00:00:00 2001 From: adiblol Date: Thu, 8 Mar 2012 19:32:05 +0100 Subject: Initial commit, Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch --- src/taskfireant.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/taskfireant.h (limited to 'src/taskfireant.h') 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_ -- cgit v1.2.3-1-g7c22