예제 #1
0
 public static void leave(int pos) {
   if (Dungeon.level.heaps.get(pos) == null) {
     Level.set(pos, Terrain.DOOR);
     GameScene.updateMap(pos);
     Dungeon.observe();
   }
 }
예제 #2
0
  public static void enter(int pos) {
    Level.set(pos, Terrain.OPEN_DOOR);
    GameScene.updateMap(pos);
    Dungeon.observe();

    if (Dungeon.visible[pos]) {
      Sample.INSTANCE.play(Assets.SND_OPEN);
    }
  }