public override void Interact(LivingCreature lc) { //if you are interacting with the player you are a monster MazeMonster monsterParty = (MazeMonster) lc; //Battle if (!lc.Dead) { BattleWindow theBattle = new BattleWindow(monsterParty.GetParty()); MainWindow.PauseHive(); theBattle.ShowDialog(); if (this.Dead) { Restart(); } MainWindow.StartHive(); this.GetInventory().AddItemList(lc.GetInventory()); lc.Die(); } }
public override void Interact(LivingCreature l) { l.Die(); }