BattleShip.casePlatform.OverCase C# (CSharp) Метод

OverCase() публичный Метод

check if the mouse is over the case and display it
public OverCase ( int x, int y ) : void
x int
y int
Результат void
        public void OverCase(int x, int y)
        {
            if ((x > this.Rect.X) && (x < this.Rect.X + this.Rect.Width) && (y > this.Rect.Y) && (y < this.Rect.Y + this.Rect.Height))
            {
                this.Color = Color.CornflowerBlue;
            }
            else
            {
                this.Color = Color.White;
            }
        }
        #endregion