summaryrefslogtreecommitdiffstats
path: root/src/taskreset.h
blob: fa80a40436c64709fab4cb07afb8a37470fe4907 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// taskreset.h

#ifndef _TASKRESET_H_
#define	_TASKRESET_H_


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



enum TaskResetPhase
{
	TRSP_ZOUT	= 1,	// dispara�t
	TRSP_MOVE	= 2,	// d�place
	TRSP_ZIN	= 3,	// r�appara�t
};



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

	BOOL	EventProcess(const Event &event);

	Error	Start(D3DVECTOR goal, D3DVECTOR angle);
	Error	IsEnded();

protected:
	BOOL	SearchVehicle();

protected:
	D3DVECTOR		m_begin;
	D3DVECTOR		m_goal;
	D3DVECTOR		m_angle;

	TaskResetPhase	m_phase;
	BOOL			m_bError;
	float			m_time;
	float			m_speed;
	float			m_progress;
	float			m_lastParticule;  // temps g�n�ration derni�re particule
	float			m_iAngle;
};


#endif //_TASKRESET_H_