|
|
|
@ -24,7 +24,7 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
playerCells1 = value;
|
|
|
|
|
OnPropertyChanged(nameof(PlayerCells1));
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("PlayerCells1"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public Gameboard()
|
|
|
|
@ -62,6 +62,7 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
|
|
|
|
|
game.PlaceTile(game.GetPlayingPlayer(), tiledrag!, x, y);
|
|
|
|
|
|
|
|
|
|
game.PlaceTileNotified -= Game_PlaceTileNotified;
|
|
|
|
|
PlayerCells1 = new ObservableCollection<Tile>(game.PlayerList[0].Tiles.ToList());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -70,10 +71,5 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
|
|
|
|
|
DisplayAlert("Tile place notified", args.Reason, "<3");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
|
|
|
|
|
protected virtual void OnPropertyChanged(string propertyName)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
}
|
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
}
|