generated from AMay/CPlusPlusProjectTemplate
17 lines
336 B
C++
17 lines
336 B
C++
#include "gameDefines.h"
|
|
|
|
std::vector<Block>&BlockClump::getBlocks(){
|
|
return blocks;
|
|
}
|
|
|
|
void BlockClump::addBlock(int col){
|
|
blocks.push_back(Block({(float)col*12,0}));
|
|
}
|
|
|
|
void BlockClump::addBlock(vi2d offset){
|
|
blocks.push_back(Block(offset));
|
|
}
|
|
|
|
vf2d BlockClump::getBlockPosition(Block&b){
|
|
return {b.pos.x,b.pos.y+y};
|
|
} |