Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- State* Slotmachine::update(State* currentGame) {
- if(isSame(reel[0],reel[1]) && isSame(reel[1],reel[2])) {
- if(!paid) {
- money += 50;
- paid = true;
- setMoney(money);
- }
- }
- return currentGame;
- }
- class Reel {
- public:
- Reel();
- Reel(int width, int height);
- void render(sf::RenderWindow &w);
- void randomSymbol();
- void setPosition(int x, int y);
- int getSymbol() {return r;};
- void animate();
- enum class Symbol {
- Bar,
- Bell,
- Cherry1,
- Cherry2,
- Cherry3,
- Seven,
- WaterMelon
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement