Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Library.h"
- //HELPER FUNCTIONS
- void Wait()
- {
- cout << "Press Enter to Continue";
- cin.ignore(1,'\n');
- cout << "\n";
- }
- void DisplayStats(PLAYER* player)
- {
- //display stats
- cout << endl << player->GetName() << endl;
- cout << "Level: " << player->GetLevel() << endl;
- cout << "HP: " << player->GetHealth() << " / " << player->GetMaxHealth() << endl;
- cout << "MP: " << player->GetMana() << " / " << player->GetMaxMana() << endl << endl;
- cout << "Strength: " << player->GetStrength() << endl;
- cout << "Intelligence: " << player->GetIntelligence() << endl << endl;
- cout << "Gold: " << player->GetGold() << endl;
- cout << "Experience: " << player->GetExperience() << endl;
- cout << endl;
- cout << "Weapon: " << player->GetWeapon()->GetName() << endl;
- cout << "Armor: " << player->GetArmor()->GetName() << endl;
- cout << endl;
- //list potions
- cout << "POTIONS\n\n";
- POTION** potionlist = player->GetPotionList();
- for (int loop=0;loop < 15;loop++)
- {
- if (potionlist[loop] != NULL)
- {
- cout << potionlist[loop]->GetQuantity() << " x " << potionlist[loop]->GetName() << endl;
- }
- }
- cout << endl;
- //list spells
- cout << "SPELLS\n\n";
- SPELL** spelllist = player->GetSpellList();
- for (int loop2=0;loop2 < 10;loop2++)
- {
- if (spelllist[loop2] != NULL)
- {
- cout << spelllist[loop2]->GetName() << " - MP: " << spelllist[loop2]->GetManaCost() << endl;
- }
- }
- cout << endl;
- Wait();
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment