You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main001.cpp 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #include "src/class/player.hpp"
  2. #include "src/interface/creation.hpp"
  3. #include "src/interface/info.hpp"
  4. #include "src/system/betatest.hpp"
  5. #include <iostream>
  6. int main(int argc, char const *argv[])
  7. {
  8. Player *player = nullptr;
  9. if (checkBetaTest())
  10. {
  11. int choice;
  12. do
  13. {
  14. printf("===== HackTheGame v0.0.1 (Beta) =====\n");
  15. printf("[1] Create new Character\n");
  16. printf("[2] Character Info\n");
  17. printf("[9] Credits\n");
  18. printf("[0] Exit\n");
  19. printf(">");
  20. scanf("%d", &choice);
  21. switch (choice)
  22. {
  23. case 1:
  24. player = createCharacter();
  25. break;
  26. case 2:
  27. if (player == nullptr)
  28. {
  29. std::cout << "Please create a character first!" << std::endl;
  30. }
  31. else
  32. {
  33. Info::ofPlayer(player);
  34. }
  35. break;
  36. case 9:
  37. Info::ofApplication();
  38. break;
  39. case 0:
  40. break;
  41. default:
  42. printf("Not Implemented...\n");
  43. }
  44. } while (choice != 0);
  45. }
  46. else
  47. {
  48. printf("Please get a beta.test key from one of our developer to get access to beta test...\n");
  49. return 0;
  50. }
  51. }