-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmachine.h
33 lines (29 loc) · 854 Bytes
/
machine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef MACHINE_H
#define MACHINE_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <string>
#include "column.h"
class Machine{
private:
int x,y;
double scale = 1.0, balance, bet;
bool running;
std::vector<Column*> columns;
SDL_Texture *machineTex;
std::vector<SDL_Texture*> slotTextures;
public:
bool IsRunning();
void LoadTextures(SDL_Renderer *r);
void Build(int n, int X, int Y);
void DrawMachine(SDL_Renderer *r, TTF_Font *f);
void Spin(bool trytostop);
void ColorSlots(SDL_Color c, std::vector<Slot> v, SDL_Renderer *r);
std::vector<Slot> DidWin(double *amount);
void SetBalance(double b);
double GetBalance();
void SetBet(double b);
double GetBet();
};
#endif