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

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

test if the cursor position is between a case
public IsBetweenCase ( int mouseX, int mouseY ) : bool
mouseX int position x of the mouse cursor
mouseY int position y of the mouse cursor
Результат bool
        public bool IsBetweenCase(int mouseX, int mouseY)
        {
            if ((mouseX > this.X) && (mouseX < this.X + this.Size) && (mouseY > this.Y) && (mouseY < this.Y + this.Size))
            {
                return true;
            }
            else
            {
                return false;
            }
        }