generated from sigonasr2/CPlusPlusProjectTemplate
parent
cf17d444b0
commit
fe96cb8df0
@ -1,14 +1,19 @@ |
|||||||
#ifndef BOARD_H |
#ifndef BOARD_H |
||||||
#define BOARD_H |
#define BOARD_H |
||||||
#include "pixelGameEngine.h" |
#include "pixelGameEngine.h" |
||||||
|
#include "Block.h" |
||||||
|
|
||||||
class Board{ |
class Board{ |
||||||
|
std::vector<std::vector<Block>> cols; |
||||||
public: |
public: |
||||||
float yBottom; |
float yBottom; |
||||||
vf2d drawOffset; |
vf2d drawOffset; |
||||||
vi2d boardSize; |
vi2d boardSize; |
||||||
float gravity; |
float gravity; |
||||||
|
float spawnRate; |
||||||
Board(){} |
Board(){} |
||||||
Board(vi2d boardSize,float gravity); |
Board(vi2d boardSize,float gravity,float spawnRate); |
||||||
|
void spawnBlock(int col); |
||||||
|
std::vector<Block>&getBlocks(int col); |
||||||
}; |
}; |
||||||
#endif |
#endif |
Binary file not shown.
Loading…
Reference in new issue