Brick CPP
Brick CPP
h"
#include "Position.h"
#include "Enums.h"
namespace Tetris {
return false;
}
newVectorPos.push_back(newpos);
}
board.resetCells(cellsPositions);
for(const Position& pos : newVectorPos){
board.setCellCurrent(pos, true);
}
cellsPositions = newVectorPos;
return true;
}
Brick::~Brick(){
for(const Position& pos :cellsPositions){
board.setCellCurrent(pos,false);
}
}
}