Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
adventure-game/main.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (19 sloc)
716 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "player.h" | |
int main() { | |
int choice; | |
//While loop to chose your player class | |
while (!std::cin >> choice || choice > 3 || choice < 1) { | |
std::cout << "Choose your character class. \n[1] Superman [2] Spider-Man [3] Batman; " << std::endl; | |
std::cin >> choice; | |
} | |
//Initalise instance "character" of player Class | |
player character(choice); | |
std::cout << "\nWelcome " << character.printClass() << ". Let's begin your adventure. " << std::endl; | |
//Print out player stats BS | |
std::cout << "Your starting stats:" << std::endl; | |
character.printStats();//END BS | |
while() | |
std::cin.ignore(); | |
std::cin.get(); | |
return 0; | |
} |