2022-11-18 04:26:29 -07:00
|
|
|
#include "gameDefines.h"
|
|
|
|
|
|
|
|
std::vector<Block>&BlockClump::getBlocks(){
|
|
|
|
return blocks;
|
|
|
|
}
|
|
|
|
|
|
|
|
void BlockClump::addBlock(int col){
|
|
|
|
blocks.push_back(Block({(float)col*12,0}));
|
|
|
|
}
|
|
|
|
|
2022-11-18 05:21:02 -07:00
|
|
|
void BlockClump::addBlock(int col,int row){
|
|
|
|
blocks.push_back(Block({(float)col*12,(float)row*12}));
|
|
|
|
}
|
|
|
|
|
|
|
|
void BlockClump::addBlock(vf2d offset){
|
2022-11-18 04:51:42 -07:00
|
|
|
blocks.push_back(Block(offset));
|
|
|
|
}
|
|
|
|
|
2022-11-18 04:26:29 -07:00
|
|
|
vf2d BlockClump::getBlockPosition(Block&b){
|
|
|
|
return {b.pos.x,b.pos.y+y};
|
|
|
|
}
|