generated from sigonasr2/CPlusPlusProjectTemplate
21 lines
460 B
C++
21 lines
460 B
C++
#ifndef BLOCKCLUMP_H
|
|
#define BLOCKCLUMP_H
|
|
#include "pixelGameEngine.h"
|
|
|
|
class Block;
|
|
|
|
class BlockClump{
|
|
std::vector<Block>blocks;
|
|
public:
|
|
float vspeed=0;
|
|
float landTime=0.f;
|
|
float y=0;
|
|
BlockClump(){}
|
|
std::vector<Block>&getBlocks();
|
|
void addBlock(int col);
|
|
void addBlock(int col,int row);
|
|
void addBlock(vf2d offset);
|
|
//Get a block's position relative to this block clump.
|
|
vf2d getBlockPosition(Block&b);
|
|
};
|
|
#endif |