-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
37 lines (28 loc) · 831 Bytes
/
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
/**
* @file : main.cpp
* @author : Ethan Ward
* @date : 2014.02.05
* Purpose: Loops the pokemon game until the user doesn't want to any more, as well as calls the Colosseum file to run the game.
*/
#ifndef MAIN_CPP
#define MAIN_CPP
#include <iostream>
#include <string>
#include "Colosseum.h"
#include "Pokemon.h"
int main() {
Pokemon* p1 = new Pokemon();
Pokemon* p2 = new Pokemon();
Colosseum* c = new Colosseum();
std::string again = "y";
while(again == "y") {
std::cout << "Player 1, build your Pokemon!" << std::endl << "=====================" << std::endl;
c->userBuild(*(p1));
std::cout << "Player 2, build your Pokemon!" << std::endl << "=====================" << std::endl;
c->userBuild(*(p2));
c->play(*(p1), *(p2));
std::cout << "\n" << "Do you want to play again? (y/n):";
std::cin >> again;
}
}
#endif