Esempio n. 1
0
void Block::addWall(){
	Wall* temp = wall[MapModelContainer::getMirror()];
	temp->setFrame(new BreakableModel(WALL, 
			MapModelContainer::getMirror(),
			MapModelContainer::getCondition(WALL),
			MapModelContainer::getIndex(WALL)));
	LevelMap::updateMap();
}
Esempio n. 2
0
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();
}
Esempio n. 3
0
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();
}