Class Cog

    • Constructor Detail

      • Cog

        public Cog​(EShipUpgrade upgradeLevel,
                   java.lang.String name)
        Constructor initializing the name and the upgrade level
        Parameters:
        upgradeLevel - upgrade level of the cog
        name - ships name
      • Cog

        public Cog​(java.lang.String name)
        Constructor for a Crayer without any upgrade
        Parameters:
        name - of the cog
    • Method Detail

      • init

        @PostConstruct
        private void init()
      • getShipType

        public EShipType getShipType()
        Description copied from interface: IShip
        Retrieve the type of the ship.
        Specified by:
        getShipType in interface IShip
        Returns:
        type of the ship