summaryrefslogtreecommitdiffstats
path: root/src/taskinfo.h
blob: c2d6147d74065f3256275fd61cb88284dddac3d1 (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
// taskinfo.h

#ifndef _TASKINFO_H_
#define	_TASKINFO_H_


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



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

	BOOL		EventProcess(const Event &event);

	Error		Start(char *name, float value, float power, BOOL bSend);
	Error		IsEnded();
	BOOL		Abort();

protected:
	CObject*	SearchInfo(float power);

protected:
	float			m_progress;
	float			m_speed;
	float			m_time;
	BOOL			m_bError;
};


#endif //_TASKINFO_H_