Advertisement
Guest User

Untitled

a guest
May 16th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. State* Slotmachine::update(State* currentGame) {
  2.  
  3. if(isSame(reel[0],reel[1]) && isSame(reel[1],reel[2])) {
  4.  
  5.  
  6. if(!paid) {
  7.  
  8. money += 50;
  9. paid = true;
  10. setMoney(money);
  11.  
  12. }
  13. }
  14.  
  15.  
  16. return currentGame;
  17. }
  18.  
  19. class Reel {
  20.  
  21.  
  22.  
  23. public:
  24.  
  25. Reel();
  26. Reel(int width, int height);
  27. void render(sf::RenderWindow &w);
  28. void randomSymbol();
  29. void setPosition(int x, int y);
  30. int getSymbol() {return r;};
  31. void animate();
  32.  
  33. enum class Symbol {
  34. Bar,
  35. Bell,
  36. Cherry1,
  37. Cherry2,
  38. Cherry3,
  39. Seven,
  40. WaterMelon
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement