Пример #1
0
        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;
        }
Пример #2
0
 public bool CheckMovements(Square Square, Player Player)
 {
     return Player.PossibleMovements(this, Square);
 }