public override void EnterLocation(IActor player) { DeadEnd(_location); Enter(); _location.EnterLocation(player); _update = new UpdateRequest(player,_location, _check); if(_saveState.Contains(player)) { ChangeMarkers(player); } if (_location.Count == 0) { _saveState.Add(player, Marker._red); } _saveState.Add(player,Marker._green); }
public override void ExitLocation(IActor player) { DeadEnd(_location); Exit(); _location.EnterLocation(player); _update = new UpdateRequest(player, _location, _check); }
/// <summary> /// allows exiting location /// </summary> public void ExitLocation(IActor player) { DeadEnd(_location); Exit(); _location.ExitLocation(player); _update = new UpdateRequest(player, _location, _check); //Update(); }