summaryrefslogtreecommitdiffstats
path: root/src/taskmanager.h
blob: 4384f155f6e2d9571593f3f61df2463131413ee6 (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
54
55
56
57
58
59
60
61
62
// taskmanager.h

#ifndef _TASKMANAGER_H_
#define	_TASKMANAGER_H_


class CInstanceManager;
class CTask;

enum TaskManipOrder;
enum TaskManipArm;
enum TaskFlagOrder;
enum TaskGotoGoal;
enum TaskGotoCrash;
enum TaskShieldMode;
enum ObjectType;



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

	Error	StartTaskWait(float time);
	Error	StartTaskAdvance(float length);
	Error	StartTaskTurn(float angle);
	Error	StartTaskGoto(D3DVECTOR pos, float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode);
	Error	StartTaskTake();
	Error	StartTaskManip(TaskManipOrder order, TaskManipArm arm);
	Error	StartTaskFlag(TaskFlagOrder order, int rank);
	Error	StartTaskBuild(ObjectType type);
	Error	StartTaskSearch();
	Error	StartTaskInfo(char *name, float value, float power, BOOL bSend);
	Error	StartTaskTerraform();
	Error	StartTaskPen(BOOL bDown, int color);
	Error	StartTaskRecover();
	Error	StartTaskShield(TaskShieldMode mode, float delay);
	Error	StartTaskFire(float delay);
	Error	StartTaskFireAnt(D3DVECTOR impact);
	Error	StartTaskGunGoal(float dirV, float dirH);
	Error	StartTaskSpiderExplo();
	Error	StartTaskReset(D3DVECTOR goal, D3DVECTOR angle);

	BOOL	EventProcess(const Event &event);
	Error	IsEnded();
	BOOL	IsBusy();
	BOOL	IsPilot();
	BOOL	Abort();

protected:

protected:
	CInstanceManager* m_iMan;
	CTask*			m_task;
	CObject*		m_object;
	BOOL			m_bPilot;
};


#endif //_TASKMANAGER_H_