summaryrefslogtreecommitdiffstats
path: root/src/taskgungoal.h
blob: 63630a05ca07042f3cf1dc0b7aaede0ae7ad0000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// taskgungoal.h

#ifndef _TASKGUNGOAL_H_
#define	_TASKGUNGOAL_H_


class CInstanceManager;
class CTerrain;
class CBrain;
class CPhysics;
class CObject;


class CTaskGunGoal : public CTask
{
public:
	CTaskGunGoal(CInstanceManager* iMan, CObject* object);
	~CTaskGunGoal();

	BOOL		EventProcess(const Event &event);

	Error		Start(float dirV, float dirH);
	Error		IsEnded();
	BOOL		Abort();

protected:

protected:
	float		m_progress;
	float		m_speed;
	float		m_initialDirV;	// direction initiale
	float		m_finalDirV;	// direction � atteindre
	float		m_initialDirH;	// direction initiale
	float		m_finalDirH;	// direction � atteindre
};


#endif //_TASKGUNGOAL_H_