-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameEngineDriver.cpp
More file actions
41 lines (30 loc) · 1.17 KB
/
GameEngineDriver.cpp
File metadata and controls
41 lines (30 loc) · 1.17 KB
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
#include <iostream>
#include "GameEngine.h"
#include "LoggingObserver.h"
#include "Map.h"
#include "Player.h"
#include "Cards.h"
#include "Orders.h"
#include "PlayerStrategy.h"
#include <vector>
using namespace std;
int main() {
// Player* p = new Player("ally");
// vector<Player*> players;
// players.push_back( (p));
// AggressivePlayerStrategy* agressiveplayer = new AggressivePlayerStrategy(p);
// agressiveplayer->issueOrder(players);
// Player* p = new Player();
// AggressivePlayerStrategy* aggressive = new AggressivePlayerStrategy(p);
// vector<Player*> players = { p };
// aggressive->issueOrder(players);
// cout << p->getStrongestCountry(p)->getName() << endl;
GameEngine::instance()->reset(); //reset all previous settings
GameEngine::instance()->startupPhase(); // start the startup phase
GameEngine::instance()->mainGameLoop(); // start the main game loop with its three phases
if (GameEngine::instance()->getIsGameOver() == false){
GameEngine::instance()->reset(); //reset all previous settings
GameEngine::instance()->startupPhase(); // start the startup phase
GameEngine::instance()->mainGameLoop(); // start the main game loop with its three phases
}
};