-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSDLGrid.h
More file actions
28 lines (27 loc) · 730 Bytes
/
SDLGrid.h
File metadata and controls
28 lines (27 loc) · 730 Bytes
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
#include "SDL/SDL.h"
#include "Grid.h"
#include "SDLShape.h"
class SDLGrid {
private:
SDL_Surface *surface;
Grid *grid;
Uint32 shape_color;
public:
SDLGrid(SDL_Surface *);
void place(int, int, SDLShape *);
void add_to_mound(int, int, SDLShape *);
bool out_of_bounds(int, int, SDLShape *);
bool at_bottom_or_on_mound(int, int, SDLShape *);
bool off_the_side(int, int, SDLShape *);
void draw(bool);
void animate_rows_to_clear();
void animate_rows_to_clear(int);
bool any_rows_to_clear();
int get_num_rows_to_clear();
void clear_rows();
void debug_draw();
void set_grid(Grid *);
void set_surface(SDL_Surface *);
void set_shape_color(Uint32);
void reset();
};