-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gamestate.h
29 lines (19 loc) · 1.05 KB
/
Gamestate.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
#ifndef Gamestate_H
#define Gamestate_H
#include "Territory.h"
#include "Sector.h"
class Gamestate {
std::vector<Territory> _search;
public:
std::vector<Territory>& getsearch() { return _search; }
void setsearch(std::vector<Territory>& search) { _search = search; }
}OpenList;
void Gamestuff(){
OpenList.getsearch().insert (OpenList.getsearch().end(), Asia.getTerritories().begin(), Asia.getTerritories().end());
OpenList.getsearch().insert (OpenList.getsearch().end(), Africa.getTerritories().begin(), Africa.getTerritories().end());
OpenList.getsearch().insert (OpenList.getsearch().end(), Europe.getTerritories().begin(), Europe.getTerritories().end());
OpenList.getsearch().insert (OpenList.getsearch().end(), SouthAmerica.getTerritories().begin(), SouthAmerica.getTerritories().end());
OpenList.getsearch().insert (OpenList.getsearch().end(), Austrialia.getTerritories().begin(), Austrialia.getTerritories().end());
OpenList.getsearch().insert (OpenList.getsearch().end(), NorthAmerica.getTerritories().begin(), NorthAmerica.getTerritories().end());
}
#endif