|
|
|
@ -7,7 +7,7 @@ namespace Models.Game
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The Position (x,y) of a cell in the game.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Position : INotifyPropertyChanged
|
|
|
|
|
public class Position
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The X coordinate.
|
|
|
|
@ -29,19 +29,5 @@ namespace Models.Game
|
|
|
|
|
X = x;
|
|
|
|
|
Y = y;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event raised when a property is changed to notify the view.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Trigger the PropertyChanged event for a specific property.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="propertyName">Name of the property that changed.</param>
|
|
|
|
|
protected virtual void OnPropertyChanged(string propertyName)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|