daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest May 16th, 2018 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.       };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top