1. #include <iostream>
  2. #include "shop.h"
  3. //#include "character_base.h"
  4. //#include "battle.h"
  5.  
  6.  
  7.  
  8. int isPlaying = 1;
  9. int gameOptions = 0;
  10.  
  11. shop gShop;
  12.  
  13. void ingame_menu()
  14. {
  15.  
  16. do
  17. {
  18. //gShop = new shop;
  19. std::cout << "\n\n1 = Shop \n2 = Battle \n3 = Rest \n4 = Leave Arena";
  20. std::cout << "\n\nGladiator, what would you like to do? ";
  21. std::cin >> gameOptions;
  22.  
  23.  
  24. switch (gameOptions)
  25. {
  26. case 1:
  27. //GO TO SHOP.h
  28.  
  29. gShop.shop_menu();
  30. gameOptions = 0;
  31. break;
  32. case 2:
  33. // character_base player;
  34. //character_base enemy;
  35.  
  36. //battle playerbattle;
  37.  
  38. // playerbattle.battle(enemy, player);
  39. break;
  40. case 3:
  41. //REST
  42. break;
  43. case 4:
  44. isPlaying = 0;
  45. break;
  46. default:
  47. std::cout << "\nInvalid choice, Gladiator. \n";
  48. break;
  49. }
  50. }while (gameOptions > 4 || gameOptions < 1); /* If game options is outside the bounds
  51. of the question it will catch it and
  52. it back at the user, making them try again */
  53.  
  54. }//ingame_menu ends
  55.  
  56. void main_menu()
  57. {
  58. std::cout << "\n Welcome to the Arena!\n\n";
  59. std::cout << " Will you be fighting today, Gladiator?\n\n";
  60. std::cout << "1 = Enter the Arena \n2 = Go Home ";
  61. std::cin >> isPlaying;
  62.  
  63. switch (isPlaying)
  64. { //Start of switch
  65. case 1:
  66. /* Player decides to take part in the arena
  67. battles and is passed onto the ingame menu */
  68. ingame_menu();
  69. break;
  70. default:
  71. /* If the player enters anything other than 1
  72. They do no not want to take part in the arena battles
  73. therefore the program will close */
  74. isPlaying = 0;
  75. break;
  76. } // End of isPlaying switch
  77. }
  78.  
  79.  
  80.  
  81. int main()
  82. {
  83.  
  84.  
  85. do
  86. {
  87. main_menu();
  88.  
  89. }while (isPlaying == 1);
  90. /* Unless specificly told the program will not close
  91. due to this dowhile loop. Control = isPlaying */
  92.  
  93. return 0;
  94. }
  95.  
  96.  
  97.