-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlanet.h
43 lines (39 loc) · 873 Bytes
/
Planet.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
//
//
//
//
//
#ifndef PLANET_H
#define PLANET_H
#include <string>
#include "Player.h"
using namespace std;
class Planet
{
public:
Planet();
virtual ~Planet();
// Returns the planets name
string getName() { return planetName; }
// Returns the planets name
int getNum() { return planetNum; }
// Returns the Starports type
int getType() { return planetType; }
char getClassType() { return planetClassType[getType()]; }
string getClassName() { return planetClassName[getType()]; }
protected:
private:
// Planers name
string planetName;
// Number of planet
int planetNum;
// Who owns the planet
Player planetOwner;
// Planets type
int planetType;
// Class of the planet
char planetClassType[7];
// Name of the class of the planet
string planetClassName[7];
};
#endif // PLANET_H