Class ShipType

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<java.lang.Object>, Identifiable, Named, Unique

    public class ShipType
    extends ConstructibleType
    Members of this class contain information about a type of ship.
    Version:
    $Revision: 203 $
    Author:
    $Author: $
    • Field Detail

      • fallBackMaterial

        protected boolean fallBackMaterial
    • Constructor Detail

      • ShipType

        public ShipType​(StringID id)
        Creates a new ShipType object.
    • Method Detail

      • init

        public void init​(ItemType wood)
      • setRange

        public void setRange​(int r)
        Sets the regular range of this ship type.
      • getRange

        public int getRange()
        Returns the regular range of this ship type (before any modifiers).
      • setCapacity

        public void setCapacity​(int c)
        Sets the maximum capacity (in GE).
      • getCapacity

        public int getCapacity()
        Returns the maximum capacity (in GE).
      • setMaxPersons

        public void setMaxPersons​(int p)
        Sets the number of persons that fit on the ship.
      • getMaxPersons

        public int getMaxPersons()
        Returns the number of persons that fit on the ship.
      • setCaptainSkillLevel

        public void setCaptainSkillLevel​(int l)
        Set the skill level required to command the ship.
      • getCaptainSkillLevel

        public int getCaptainSkillLevel()
        Returns the skill level required to command the ship.
      • setSailorSkillLevel

        public void setSailorSkillLevel​(int l)
        Sets the number of skill levels to sail the ship.
      • getSailorSkillLevel

        public int getSailorSkillLevel()
        Returns the number of skill levels to sail the ship.