summaryrefslogtreecommitdiffstats
path: root/src/object/auto/auto.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
commit697fbdabf10d956e0f13bfbc9414d3db40f0c535 (patch)
treeab80ba3119d07b11da5478009b905edb702c103f /src/object/auto/auto.h
parent680af178196217bdd255d2bc851f240983144ac1 (diff)
downloadcolobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.gz
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.bz2
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.zip
BOOL -> bool; additional fixes in constructors/destructors
Diffstat (limited to 'src/object/auto/auto.h')
-rw-r--r--src/object/auto/auto.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/object/auto/auto.h b/src/object/auto/auto.h
index 96f0212..5a631ec 100644
--- a/src/object/auto/auto.h
+++ b/src/object/auto/auto.h
@@ -46,39 +46,39 @@ class CAuto
{
public:
CAuto(CInstanceManager* iMan, CObject* object);
- ~CAuto();
+ virtual ~CAuto();
- virtual void DeleteObject(BOOL bAll=FALSE);
+ virtual void DeleteObject(bool bAll=false);
virtual void Init();
virtual void Start(int param);
- virtual BOOL EventProcess(const Event &event);
+ virtual bool EventProcess(const Event &event);
virtual Error IsEnded();
- virtual BOOL Abort();
+ virtual bool Abort();
- virtual BOOL SetType(ObjectType type);
- virtual BOOL SetValue(int rank, float value);
- virtual BOOL SetString(char *string);
+ virtual bool SetType(ObjectType type);
+ virtual bool SetValue(int rank, float value);
+ virtual bool SetString(char *string);
- virtual BOOL CreateInterface(BOOL bSelect);
+ virtual bool CreateInterface(bool bSelect);
virtual Error RetError();
- virtual BOOL RetBusy();
- virtual void SetBusy(BOOL bBuse);
+ virtual bool RetBusy();
+ virtual void SetBusy(bool bBuse);
virtual void InitProgressTotal(float total);
virtual void EventProgress(float rTime);
- virtual BOOL RetMotor();
- virtual void SetMotor(BOOL bMotor);
+ virtual bool RetMotor();
+ virtual void SetMotor(bool bMotor);
- virtual BOOL Write(char *line);
- virtual BOOL Read(char *line);
+ virtual bool Write(char *line);
+ virtual bool Read(char *line);
protected:
- void CheckInterface(CWindow *pw, EventMsg event, BOOL bState);
- void EnableInterface(CWindow *pw, EventMsg event, BOOL bState);
- void VisibleInterface(CWindow *pw, EventMsg event, BOOL bState);
- void DeadInterface(CWindow *pw, EventMsg event, BOOL bState);
+ void CheckInterface(CWindow *pw, EventMsg event, bool bState);
+ void EnableInterface(CWindow *pw, EventMsg event, bool bState);
+ void VisibleInterface(CWindow *pw, EventMsg event, bool bState);
+ void DeadInterface(CWindow *pw, EventMsg event, bool bState);
void UpdateInterface();
void UpdateInterface(float rTime);
@@ -101,8 +101,8 @@ protected:
CSound* m_sound;
ObjectType m_type;
- BOOL m_bBusy;
- BOOL m_bMotor;
+ bool m_bBusy;
+ bool m_bMotor;
float m_time;
float m_lastUpdateTime;
float m_progressTime;