-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeavyEngine.h
53 lines (48 loc) · 1013 Bytes
/
HeavyEngine.h
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
/**
* @file HeavyEngine.h
* @author Rina Rene du Toit
* @class HeavyEngine
* @brief Inherts from Stage1Engine, Design Pattern: State, Participant: Concrete State
*/
#ifndef HeavyENGINE_H
#define HeavyENGINE_H
using namespace std;
#include "Stage1Engine.h"
#include "Stage2Engine.h"
#include "FalconCore.h"
#include "FalconRocket.h"
class HeavyEngine : public Stage1Engine {
private:
/**
* Array of falcon cores, the engine used in this state
*/
FalconCore** cores;
public:
/**
* Constructor for HeavyEngine Class
*/
HeavyEngine();
/**
* Destructor for HeavyEngine Class
*/
virtual ~HeavyEngine();
/**
* Turn on the rocket's engine
*/
void TurnOn(FalconRocket*);
/**
* Turn off the rocket's engine
*/
void TurnOff(FalconRocket*);
/**
* Returns the number of engines
* @return Current StageEngine storing the stage of the rocket
*/
virtual int EngineCount();
/**
* Get state of engines
* @return The state of the engines
*/
virtual bool getState();
};
#endif