-
Notifications
You must be signed in to change notification settings - Fork 0
/
city.hpp
40 lines (36 loc) · 856 Bytes
/
city.hpp
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
#ifndef __CITY_H__
#define __CITY_H__
using namespace std;
#include<string>
#include"monster.hpp"
class City{
private:
string name;
string north;
string south;
string east;
string west;
Monster *monster1;
Monster *monster2;
public:
City(string name, string east, string west, string south, string north):name(name),
north(north),
south(south),
east(east),
west(west){
monster1 = NULL;
monster2 = NULL;
}
City(){}
void setMonster1(Monster *monster1);
void setMonster2(Monster *monster2);
Monster* getMonster1();
Monster* getMonster2();
string getName();
string getEast();
string getWest();
string getSouth();
string getNorth();
friend ostream & operator << (ostream &os, const City &city);
};
#endif // __CITY_H__