generated from sigonasr2/CPlusPlusProjectTemplate
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
527 B
24 lines
527 B
#ifndef BOARD_H
|
|
#define BOARD_H
|
|
#include "pixelGameEngine.h"
|
|
|
|
class Block;
|
|
class BlockClump;
|
|
|
|
class Board{
|
|
std::vector<std::vector<Block>> cols;
|
|
std::vector<BlockClump> clumps;
|
|
public:
|
|
float yBottom;
|
|
vf2d drawOffset;
|
|
vi2d boardSize;
|
|
float gravity;
|
|
float spawnRate;
|
|
Board(){}
|
|
Board(vi2d boardSize,float gravity,float spawnRate);
|
|
void spawnBlock(int col);
|
|
std::vector<Block>&getBlocks(int col);
|
|
std::vector<BlockClump>&getBlockClumps();
|
|
void removeClump(int ind);
|
|
};
|
|
#endif |