Advertisement
SIKER_98

1

Apr 27th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class Game {
  4. private:
  5. int szerokosc, dlugosc;
  6.  
  7. public:
  8. Game(int szerokosc, int dlugosc) {
  9. this->szerokosc = szerokosc;
  10. this->dlugosc = dlugosc;
  11. }
  12.  
  13. void pressUp() {
  14.  
  15. }
  16.  
  17. void pressDown() {
  18.  
  19. }
  20.  
  21. void pressLeft() {
  22.  
  23. }
  24.  
  25. void pressRight() {
  26.  
  27. }
  28.  
  29. void step() {
  30.  
  31. }
  32.  
  33. int getPoints() {
  34.  
  35. }
  36.  
  37. void show() {
  38.  
  39. }
  40.  
  41. void setDirection(int direction) {
  42. switch (direction) {
  43. case 0:
  44. pressUp();
  45. break;
  46. case 1:
  47. pressDown();
  48. break;
  49. case 2:
  50. pressLeft();
  51. break;
  52. case 4:
  53. pressRight();
  54. break;
  55. }
  56. }
  57.  
  58.  
  59. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement