BattleShip.Ship.rotateBoat C# (CSharp) Method

rotateBoat() public method

rotate the boat (inverse the height and the width of the boat)
public rotateBoat ( ) : void
return void
        public void rotateBoat()
        {
            int swap = 0;
            swap = this.HeightCase;
            this.HeightCase = this.WidthCase;
            this.WidthCase = swap;
        }