-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRocket.h
More file actions
43 lines (39 loc) · 1022 Bytes
/
Rocket.h
File metadata and controls
43 lines (39 loc) · 1022 Bytes
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
#ifndef ROCKET_H
#define ROCKET_H
#include "Singlevacuummerlin.h"
#include "Falcon9core.h"
#include "Merlinengine.h"
#include "State.h"
#include "Decommissioned.h"
#include <iostream>
#include <string>
using namespace std;
class Rocket
{
private:
SingleVacuumMerlin *single;
State *state;
string payloadType;
Rocket *successor;
public:
Rocket(string);
virtual ~Rocket();
void decommission();
virtual void handleRequest(Rocket *);
void add(Rocket *);
Rocket *getSuccessor();
void setSuccessor(Rocket *);
string getPayloadType();
virtual void attach(Rocket*)=0;
virtual void deliver()=0;
virtual Falcon9Core* getCore( int index );
virtual Falcon9Core* getCore();
virtual MerlinEngine* getEngine( int index );
virtual bool coreSystemCheck();
virtual bool engineSystemCheck();
bool singleSystemCheck();
SingleVacuumMerlin* getSingle();
void setState(State*);
void staticFire();
};
#endif