#include #include #include #include #include "MyUtil.h" #include "StatusT.h" #include "ResultT.h" #include "PlayerT.h" #include "GameConstants.h" using namespace std; void GetPlayers(PlayerT team[MAX_PLAYERS], int & cthulhu); void PrintPlayers(const PlayerT team[MAX_PLAYERS]); void Battle(PlayerT & attacker, PlayerT & victim, int & chtulhu); int main() { int cthulhu = MAX_SANITY; PlayerT players[MAX_PLAYERS]; GetPlayers(players, cthulhu); PrintPlayers(players); return 0; } void GetPlayers(PlayerT team[MAX_PLAYERS], int & cthulhu){ size_t i; for(i =0; i < MAX_PLAYERS; i++) { cout << "Enter the information for player " << i << endl; team[i] = GetPlayer(cthulhu); cout << endl; } return; } void PrintPlayers(const PlayerT team[MAX_PLAYERS]){ size_t i; for(i =0; i < MAX_PLAYERS; i++) { cout << "Player " << i << endl; PrintPlayer(team[i]); cout << endl; } return; } //void Battle(PlayerT & attacker, PlayerT & victim, int & chtulhu){ void Battle(PlayerT &, PlayerT & , int & ){ } ResultT RollDie(){ ResultT result = ResultT::UNKNOWN; int roll; roll = rand() % 12; if (roll < 5) { result = ResultT::YELLOW_SIGN; } else if (roll < 9) { result = ResultT::TENTACLE; } else if (roll == 9) { result = ResultT::ELDER_SIGN; } else if (roll == 10) { result = ResultT::CTHULHU; } else if (roll == 11) { result = ResultT::EYE; } else { result = ResultT::UNKNOWN; } return result; }