public void ExitRoom(Warrior TheWarrior, Room TheRoom) { var currentCoordinates = TheRoom.GetCoordinatesOf(TheWarrior); var currentUnit = TheRoom.GetUnitAt(currentCoordinates); if (currentUnit is ExitPoint) { TheRoom.Remove(TheWarrior); } }
public void ExitRoom(Warrior TheWarrior, Room TheRoom) { var currentCoordinates = TheRoom.GetCoordinatesOf(TheWarrior); var currentUnit = TheRoom.GetUnitAt(currentCoordinates); if (currentUnit is ExitPoint) { TheRoom.Remove(TheWarrior); } }