Uses of Enum Class
battleship.Compass
-
Uses of Compass in battleship
Methods in battleship that return CompassModifier and TypeMethodDescriptionIShip.getBearing()Gets bearing.Ship.getBearing()Gets bearing.static CompassCompass.randomBearing()Generate a random compass direction (bearing).static CompassReturns the enum constant of this class with the specified name.static Compass[]Compass.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in battleship with parameters of type CompassModifierConstructorDescriptionInstantiates a new Barge.Instantiates a new Caravel.Instantiates a new Carrack.Instantiates a new Frigate.Instantiates a new Galleon.Create ships