c++ continued from Pokemon trails to save info to a file // Pokemontrails.cpp (main int) PokemonTrai

c++ continued from Pokemon trails to save info to a file // Pokemontrails.cpp (main int)

PokemonTrails.cpp :

// PokemonTrails.cpp : This file contains the 'main' function. Program execution begins and ends there.

//

#include “pch.h”

#include

#include

#include

#include

#include “Game.h”

#include “Player.h”

#include “Store.h”

#include “Dice.h”

#include “Pokemon.h”

using namespace std;

Pokemon pokemon;

Player player;

Game game;

Store store;

int main()

{

string choice;

string x = “”;

int uSize = 0;

int iopen = 0;

int uDiff = 0;

int uMax = 49;

int pickedChar = 0;

string uborder = “”;

string pname = “”;

int phelper = 0;

string startAdventure = “N”;

int askCounter = 0;

string contGame = ” “;

int teamCnt = 0;

int storeCnt = 0;

//SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE), CONSOLE_FULLSCREEN_MODE, 0);

pname = game.startGame();

uSize = pname.size();

uDiff = uMax – uSize;

for (int i = 0; i

{

uborder += ” “;

}

uborder += “**”;

cout

cout

cout

cout

cout

cout

cout

cout

cout

while (startAdventure == “N” && askCounter == 0)

{

startAdventure = game.playGame();

if (startAdventure == “N”)

{

cout

cout

cout

cout

askCounter++;

startAdventure = “”;

startAdventure = game.playGame();

}

}

if (startAdventure == “N”)

{

cout

cout

cout

cout

}

else

{

system(“CLS”);

//iopen = game.readDisplay(“TitlePokemon.txt”, 50);

cout

//The user had selected to play the game

//Load pokemon list to choose from

iopen = game.loadPokemon(“pokecharactersload.txt”);

if (iopen != 0)

{

cout

cout

cout

return 0;

}

else

{

iopen = game.loadLocation(“location.txt”);

cout

if (iopen == 0)

{

pickedChar = game.pickPokeHelper(pname);

if ((pickedChar == 25) || (pickedChar == 1) || (pickedChar == 4) || (pickedChar == 7))

{

system(“CLS”);

cout

iopen = game.loadStarterPic(pickedChar);

system(“PAUSE”);

cout

if (iopen >= 0)

{

switch (pickedChar)

{

case 1:

cout

cout

cout

cout

break;

case 4:

cout

cout

cout

cout

break;

case 7:

cout

cout

cout

cout

break;

case 25:

cout

cout

cout

cout

cout

cout

break;

default:

break;

}

}

else

{

cout

cout

cout

}

uMax = 23;

uborder = “”;

uDiff = uMax – uSize;

for (int i = 0; i

{

uborder += ” “;

}

uborder += “**”;

//system(“CLS”);

cout

cout

cout

cout

cout

cout

cout

cout

cout

cout

cout

cout

cout

contGame = game.continueGame();

if (contGame == “N”)

{

cout

cout

cout

}

else

{

system(“CLS”);

cout

cout

cout

cout

cout

cout

cout

game.displayLocation();

cout

cout

cout

cout

cout

cout

cout

teamCnt = game.selectTeam();

if (teamCnt != 5)

{

cout

return 0;

}

else

{

cout

cout

cout

cout

cout

cout

//storeCnt = game.buySupplies();

}

}

}

else

{

cout

cout

cout

}

}

else

{

cout

cout

cout

return 0;

}

}

}

iopen = game.savePlayer(“game.txt”);

cout

//SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE), CONSOLE_WINDOWED_MODE,0);

cout

return 0;

}

NEED HELP WITH SUCH A TASK? WE HAVE THE BEST TUTORS FOR YOU. ORDER NOW FROM 10$/PG