public void setLair(Monster monster) { Utility.Assert(monster != null, "Room.setLair - monster != null"); fLair = monster; if (fLairCount <= monster.getKillScore()) { fLairCount++; fCoins++; } fSpawn = true; }
public int stopSpawn() { Utility.Assert(fLair != null, "Room.removeLair - fLair != null"); fSpawn = false; return(2 * fLair.getKillScore()); }