blob: 2736a7a24fc1750d469b9e8242bcd4bedab2cb3b (
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
|
#ifndef _ENGINE_H
#define _ENGINE_H
#include "stdafx.h"
class Engine : public IO_Module
{
public:
Engine()
{
this->enabled = false;
this->parent = NULL;
}
Engine(uint32 engineId)
{
this->enabled = false;
this->parent = NULL;
this->moduleId = engineId;
}
protected:
bool enabled;
float curSpeed;
public:
float GetSpeed()
{
return curSpeed;
}
void SetSpeed(float newSpeed)
{
curSpeed = newSpeed;
}
bool GetEnabled()
{
return enabled;
}
void SetEnabled(bool newStatus)
{
enabled = newStatus;
}
};
#endif
|