Advertisement
Guest User

program

a guest
Feb 5th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. /*
  2. * File: main.cpp
  3. * Author: Logan Laframboise and Sean Bennell
  4. *
  5. * Created on February 1, 2016, 5:37 PM
  6. */
  7.  
  8. #include <cstdlib>
  9. #include <ctime>
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <string>
  13. #include <iostream>
  14. #include <ctime>
  15.  
  16. using namespace std;
  17. int cheats(string name){
  18. float self;//stat % for self
  19. float enemy;//stat % for enemy
  20. int hitRate;// | 0 = miss | 1 = hit |
  21. int extra;// | 0 = 0 |1 = bm | 2 = smile | 3 = silly text | 4 = no stat text | 5 = JOHNCENA |
  22. if(name == "Erikson"){
  23. self = 1;
  24. enemy = 0.5;
  25. hitRate = 1;
  26. extra = 0;
  27. }
  28. if(name == "LeGodOne"){
  29. self = 1.5;
  30. enemy = 0.5;
  31. hitRate = 1;
  32. extra = 1;
  33. }
  34. if(name == "TSM"){
  35. self = 2.0;
  36. enemy = 1.0;
  37. hitRate = 1;
  38. extra = 0;
  39. }
  40. if(name == "WildTurtle"){
  41. self = 1.0;
  42. enemy = 1.0;
  43. hitRate = 1;
  44. extra = 2;
  45. }
  46. if(name == "Doge"){
  47. self = 1.0;
  48. enemy = 1.0;
  49. hitRate = 1;
  50. extra = 3;
  51. }
  52. if(name == "NewGame"){
  53. self = 1.0;
  54. enemy = 2.0;
  55. hitRate = 1;
  56. extra = 0;
  57. }
  58. if(name == "Hunter2"){
  59. self = 1.0;
  60. enemy = 1.0;
  61. hitRate = 1;
  62. extra = 4;
  63. }
  64. if(name == "AndHisNameIS"){
  65. self = 1.0;
  66. enemy = 1.0;
  67. hitRate = 1;
  68. extra = 5;
  69. }
  70. else{
  71. self = 1.0;
  72. enemy = 1.0;
  73. hitRate = 1;
  74. extra = 0;
  75. }
  76. return (self,enemy,hitRate,extra);
  77. }
  78. int option(string choice){
  79. int number;
  80. number = 0;
  81. if(choice == "interact"){
  82. number += 1;
  83. }
  84. else if(choice == "items"){
  85. number += 2;
  86. }
  87. else if(choice == "investigate"){
  88. number += 3;
  89. }
  90. else if(choice == "flee"){
  91. number += 4;
  92. }
  93. return number;
  94. }
  95. int combat(){
  96. int eHP, uHP;
  97. int eEn, uEn;
  98.  
  99. }
  100. int main(int argc, char** argv) {
  101. bool running = true;
  102. bool playing = true;
  103. string name;
  104. string close;
  105. string choice;
  106. int decision;
  107. while (running){
  108. cout << "What is your name? \n";
  109. cin >> name;
  110. while (playing){
  111. cout << "What would you like to do:\n";
  112. cout << "Interact\t" << "Items\t" << "Investigate\t" << "Flee\t\n";
  113. cin >> choice;
  114. decision = option(choice);
  115. /*
  116. * switch(x){
  117. * case 1:
  118. * stuff;
  119. * }
  120. */
  121.  
  122.  
  123. cout << endl << "Would you like to play again?\n";
  124. cin >> close;
  125. if(close == "no"){
  126. running = false;
  127. playing = false;
  128. }
  129. }
  130. }
  131. }
  132.  
  133. i need to add a lot of stuff im in the process of working out how the combat system interacts so i can code the moves and stuff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement