public virtual string RunAway(Board b) { var room = b.GetRoom(roomId); var corridors = room.corridors; return(name + " shrieks and howls with pain and retreats to "); }
public bool InCombat(Board board) { var room = board.GetRoom(roomId); var occupants = room.GetRoomOccupants(board); return(occupants.Any(r => r.isHostile != isHostile)); }
public void CreateNoise(Board board) { if (isMonsterTunnel) { board.GetRoom(999).corridors.ForEach(r => r.Noise.State = true); } else { Noise.State = true; } NotifyListeners(Noise.ToString()); }
public virtual string Kill(Board board) { board.GetRoom(this.roomId).heavyItemsOnGround.Add(new Carcass()); board.targets.Remove(this); return(name + " dies!"); }