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 53 54 55 56
|
#include "Player.h"
#include "Enemy.h"
#include "Battle.h"
#include "Equipment.h"
#include "Shop.h"
using namespace std;
int main() {
short unsigned int testChoice;
enum TestChoices { QUIT, SHOP, BATTLE };
Player* newPlayer = new Player("Jerk", 1, 1, 0, 1, 0, 10, 0, 10, 6000, 10);
Shop* newShop = new Shop(newPlayer);
srand(static_cast<unsigned int>(time(0)));
do {
cout << "Welcome to the dummy test program." << endl << endl;
cout << "The following options are available:" << endl << endl;
cout << "1 - Test Store" << endl;
cout << "2 - Test Battle" << endl;
cout << "0 - Quit" << endl << endl;
cout << "Pick one: ";
cin >> testChoice;
switch(testChoice) {
case QUIT:
cout << endl << "Fine, peace!" << endl << endl;
break;
case SHOP:
newShop->BeginShopping();
break;
case BATTLE:
Enemy* newEnemy = new Enemy("Guy", 10, 9000, 1, 9000, 5, 1, 2);
Battle* newBattle = new Battle(newPlayer, newEnemy);
newBattle->BeginBattle();
delete newEnemy;
delete newBattle;
break;
}
ShowPlayer(*newPlayer);
} while (testChoice != QUIT);
return 0;
}
|