public void setup(StaticGenerator gen) {
   gen.reset();
   gen.setCharMap(getCharMap());
   gen.setLevel(getCellMap());
   gen.setInhabitantsMap(getInhabitantsMap());
   gen.setInhabitants(getInhabitants());
 }
Esempio n. 2
0
 public void unleash(Level level, Game game) {
   if (level.getBoss() == null) {
     Display.thus.showScreen(
         "As you destroy the mummy of Akmodan, the whole room trembles, and a cold hurricaned wind covers all the place, shredding everything on sight. All of a sudden, the floor under you collapses.");
     level.getPlayer().reduceKeys(1);
     level.setMusicKeyMorning("");
     level.setMusicKeyNoon("");
     STMusicManagerNew.thus.stopMusic();
     try {
       StaticGenerator.getGenerator().renderOverLevel(level, newMap, charMap, new Position(0, 0));
     } catch (CRLException crle) {
       Game.crash("Error on Mummy1 unleasher", crle);
     }
     enabled = false;
   }
 }