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