#ifndef BLOCKCLUMP_H #define BLOCKCLUMP_H #include "pixelGameEngine.h" class Block; enum class BlockColor; class BlockClump{ std::vectorblocks; public: float vspeed=0; float landTime=0.f; float launchTime=0.f; int combo=0; float y=0; bool flinged=false; BlockClump(); std::vector&getBlocks(); void addBlock(int col,BlockColor color); void addBlock(int col,int row,BlockColor color); void addBlock(vf2d offset,BlockColor color); void addBlockOnTopOf(int col,BlockColor color,int defaultY); //Get a block's position relative to this block clump. vf2d getBlockPosition(Block&b); void sortBlocks(); void removeBlock(int i); }; #endif