Guest User

Untitled

a guest
Oct 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. Stats::Stats(int SetHealth, int SetAttack, int SetDefence, int SetSpecialAttack) {
  2. Health = SetHealth;
  3. Attack = SetAttack;
  4. Defence = SetDefence;
  5. SpecialAttack = SetSpecialAttack;
  6. }
  7.  
  8. // This is the first monster battle interaction.
  9. void FelixBattle(int FelixBattle) {
  10.  
  11. // This creates a pointer object from the Monster class.
  12. // Monster FightController*;
  13.  
  14. // Creates the stringstream object to facilitate the use of game text for this battle scenario.
  15. std::stringstream FelixString;
  16.  
  17. // This is game text that will be moved around when the game logic is implemented.
  18. FelixString << "Felix steps forward, wielding a blunt sword and an old helmet.";
  19. FelixString << "You Feel tense but confident that you can defeat him with ease.";
  20. }
  21.  
  22. void Monster::FighController() {
  23. int playerTurn;
  24. int MonsterTurn;
  25.  
  26. // Creates the variable for looping the if statements
  27. bool BattleLoop;
  28.  
  29. // Both of these will loop until someone dies.
  30. // This is the scenario where the player is attacking the monster.
  31. while (BattleLoop == true) {
  32. if (playerTurn) {
  33. int MonsterDefence;
  34. int PlayerAttack;
  35.  
  36. if (PlayerAttack > MonsterDefence) {
  37. // Take the difference from the Monster Defence value
  38. // Call the Stats constructor here and set the required variables up for the battle.
  39. }
  40. }
  41. }
  42.  
  43.  
  44. // This is the scenario where the monster is attacking the player.
  45. while (BattleLoop == true) {
  46. if (MonsterTurn) {
  47. int MonsterAttack;
  48. int PlayerDefence;
  49.  
  50. if (MonsterAttack > PlayerDefence) {
  51. // Take the differnce from the Player Defence value
  52. }
  53. }
  54. }
  55. }
  56.  
  57. FelixBattle(' ');
Add Comment
Please, Sign In to add comment