Attempt #7?!
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.
Meteos/Board.h

25 lines
559 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 convertClump(int ind);
void removeClump(int ind);
};
#endif