-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
52 lines (49 loc) · 1.74 KB
/
main.cpp
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
44
45
46
47
48
49
50
51
52
#include "Model.h"
#include "Point2D.h"
#include "Vector2D.h"
#include "GameObject.h"
#include "Building.h"
#include "PokemonCenter.h"
#include "PokemonGym.h"
#include "Pokemon.h"
#include "GameCommand.h"
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main(){
//MODEL THE GAME
Model Model1;
//setup inputcommand
char inputCommand = ' ';
//LOGO
cout << R"(
,'\
_.----. ____ ,' _\ ___ ___ ____
_,-' `. | | /`. \,-' | \ / | | \ |`.
\ __ \ '-. | / `. ___ | \/ | '-. \ | |
\. \ \ | __ | |/ ,','_ `. | | __ | \| |
\ \/ /,' _`.| ,' / / / / | ,' _`.| | |
\ ,-'/ / \ ,' | \/ / ,`.| / / \ | |
\ \ | \_/ | `-. \ `' /| | || \_/ | |\ |
\ \ \ / `-.`.___,-' | |\ /| \ / | | |
\ \ `.__,'| |`-._ `| |__| \/ | `.__,'| | | |
\_.-' |__| `-._ | '-.| '-.| | |
`' '-._|
)"
<< '\n';
while(inputCommand != 'q'){
//show status of everything
Model1.ShowStatus();
//show time
cout << "Current time: " << Model1.getTime() << endl;
//get command from user
cout << "Enter a command!" << endl;
cout << "Commands include: m,g,c,s,r,t,v,x,q" << endl;
cin >> inputCommand;
//deal with user input in a seperate function
handleInput(inputCommand, Model1);
}
cout << "Program has exited! Thanks for playing." << endl;
return 0;
}