public Pon(Player Player) { this.Rec = new Rectangle(); this.Rec.Height = this.Rec.Width = 65; this.Rec.HorizontalAlignment = HorizontalAlignment.Center; this.Rec.VerticalAlignment = VerticalAlignment.Center; this.Rec.RadiusX = 50; this.Rec.RadiusY = 50; this.Rec.Stroke = Brushes.Black; this.Rec.MouseEnter += OnMouseEnter; this.Rec.MouseLeave += OnMouseLeave; this.Rec.MouseLeftButtonDown += OnMouseLeftClick; this.Player = Player; this.Dame = false; this.Selected = false; this.Hovered = false; }
public bool CheckMovements(Square Square, Player Player) { return Player.PossibleMovements(this, Square); }