void Block::addWall(){ Wall* temp = wall[MapModelContainer::getMirror()]; temp->setFrame(new BreakableModel(WALL, MapModelContainer::getMirror(), MapModelContainer::getCondition(WALL), MapModelContainer::getIndex(WALL))); LevelMap::updateMap(); }
void Block::addWindow(){ Wall* temp = wall[MapModelContainer::getMirror()]; temp->setFrame(new BreakableModel(WINDOWFRAME, MapModelContainer::getMirror(), MapModelContainer::getCondition(WINDOWFRAME), MapModelContainer::getIndex(WINDOWFRAME))); temp->setWindow(new BreakableModel(WINDOW, MapModelContainer::getMirror(), MapModelContainer::getCondition(WINDOW), MapModelContainer::getIndex(WINDOW))); LevelMap::updateMap(); }
void Block::addDoor(){ Wall* temp = wall[MapModelContainer::getMirror()]; temp->setFrame(new BreakableModel(DOORFRAME, MapModelContainer::getMirror(), MapModelContainer::getCondition(DOORFRAME), MapModelContainer::getIndex(DOORFRAME))); temp->setDoor(new DoorModel(MapModelContainer::getMirror(), MapModelContainer::getShift(), MapModelContainer::getInvert(), MapModelContainer::getAngle(), MapModelContainer::getIndex(DOOR))); LevelMap::updateMap(); }