BattleShip.Ship.isBetweenCase C# (CSharp) Method

isBetweenCase() public method

Check the postion of the boat and the cursor of the mouse
public isBetweenCase ( int mouseX, int mouseY ) : bool
mouseX int position x of the mouse cursor
mouseY int position y of the mouse cursor
return bool
        public bool isBetweenCase(int mouseX, int mouseY)
        {
            if ((mouseX > this.X) && (mouseX < (this.X + this._size * this.WidthCase)) &&
               (mouseY > this.Y) && (mouseY < (this.Y + this._size * this.HeightCase)))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        #endregion