Uses of Class
net.sf.freecol.common.model.UnitType

Packages that use UnitType
net.sf.freecol.client.control Contains the classes responsible for the control of the game. 
net.sf.freecol.client.gui Contains the GUI classes. 
net.sf.freecol.client.gui.i18n  
net.sf.freecol.client.gui.panel Contains the panels and dialogs. 
net.sf.freecol.common Contains classes in use by both the server and the client. 
net.sf.freecol.common.model Contains the game model. 
net.sf.freecol.server.ai The main package of the ai package tree. 
net.sf.freecol.server.ai.goal   
net.sf.freecol.server.ai.mission Contains the missions an AIUnit can be assigned to. 
net.sf.freecol.server.control Contains the classes responsible for the control of the game. 
 

Uses of UnitType in net.sf.freecol.client.control
 

Methods in net.sf.freecol.client.control with parameters of type UnitType
 Unit ClientModelController.createUnit(java.lang.String taskID, Location location, Player owner, UnitType type)
          Creates a new unit.
 void InGameController.purchaseUnitFromEurope(UnitType unitType)
          Purchases a unit of a specified type in Europe.
 void InGameController.trainUnitInEurope(UnitType unitType)
          Trains a unit of a specified type in Europe.
 

Uses of UnitType in net.sf.freecol.client.gui
 

Methods in net.sf.freecol.client.gui with parameters of type UnitType
 javax.swing.ImageIcon ImageLibrary.getUnitImageIcon(UnitType unitType)
          Returns the ImageIcon that will represent a unit of the given type.
 javax.swing.ImageIcon ImageLibrary.getUnitImageIcon(UnitType unitType, boolean grayscale)
          Returns the ImageIcon that will represent a unit of the given type.
 javax.swing.ImageIcon ImageLibrary.getUnitImageIcon(UnitType unitType, Unit.Role role)
          Returns the ImageIcon that will represent a unit of the given type and role.
 javax.swing.ImageIcon ImageLibrary.getUnitImageIcon(UnitType unitType, Unit.Role role, boolean grayscale)
          Returns the ImageIcon that will represent a unit of the given type and role.
 

Uses of UnitType in net.sf.freecol.client.gui.i18n
 

Methods in net.sf.freecol.client.gui.i18n with parameters of type UnitType
static java.lang.String Messages.getLabel(UnitType someType, Unit.Role someRole)
          Returns the name of a unit in a human readable format.
 

Uses of UnitType in net.sf.freecol.client.gui.panel
 

Methods in net.sf.freecol.client.gui.panel that return UnitType
 UnitType LabourData.UnitData.getUnitType()
           
 

Methods in net.sf.freecol.client.gui.panel that return types with arguments of type UnitType
static java.util.List<UnitType> LabourData.getLabourTypes(Player player)
           
 

Methods in net.sf.freecol.client.gui.panel with parameters of type UnitType
 javax.swing.JLabel ReportPanel.createUnitTypeLabel(UnitType unitType, Unit.Role role, int count)
           
 LabourData.UnitData LabourData.getUnitData(UnitType unitType)
          get profession data (create on demand)
 

Constructors in net.sf.freecol.client.gui.panel with parameters of type UnitType
LabourData.UnitData(UnitType unitType)
           
 

Uses of UnitType in net.sf.freecol.common
 

Methods in net.sf.freecol.common that return UnitType
 UnitType Specification.getExpertForProducing(GoodsType goodsType)
           
 UnitType Specification.getUnitType(java.lang.String id)
           
 

Methods in net.sf.freecol.common that return types with arguments of type UnitType
 java.util.List<UnitType> Specification.getUnitTypeList()
           
 java.util.List<UnitType> Specification.getUnitTypesPurchasedInEurope()
          Returns the unit types that can be purchased in Europe.
 java.util.List<UnitType> Specification.getUnitTypesTrainedInEurope()
          Returns the unit types that can be trained in Europe.
 java.util.List<UnitType> Specification.getUnitTypesWithAbility(java.lang.String... abilities)
          Return the unit types which have any of the given abilities
 

Uses of UnitType in net.sf.freecol.common.model
 

Methods in net.sf.freecol.common.model that return UnitType
 UnitType Player.generateRecruitable(java.lang.String id)
          Generates a random unit type recruitable by this player.
 UnitType UnitType.getEducationUnit(int maximumSkill)
          Get a UnitType to learn with a level skill less or equal than given level
 UnitType Building.getExpertUnitType()
          Returns the unit type being an expert in this Building.
 UnitType IndianSettlement.getLearnableSkill()
          Returns the skill that can be learned at this settlement.
 UnitType UnitTypeChange.getNewUnitType()
          Get the NewUnitType value.
 UnitType Europe.getRecruitable(int slot)
          Gets the type of the recruitable in Europe at the given slot.
 UnitType PlayerExploredTile.getSkill()
           
 UnitType Unit.getType()
          Get the UnitType value.
 UnitType AbstractUnit.getUnitType()
          Get the UnitType value.
 UnitType UnitType.getUnitTypeChange(UnitTypeChange.ChangeType changeType, Player player)
          Describe getUnitTypeChange method here.
static UnitType Unit.getUnitTypeTeaching(UnitType typeTeacher, UnitType typeStudent)
          Gets the UnitType which a teacher is teaching to a student.
 

Methods in net.sf.freecol.common.model that return types with arguments of type UnitType
 java.util.List<RandomChoice<UnitType>> Player.generateRecruitablesList()
          Generate a weighted list of unit types recruitable by this player.
 java.util.List<UnitType> Colony.getBuildableUnits()
          Returns a List with every unit type this colony may build.
 java.util.List<RandomChoice<UnitType>> IndianNationType.getSkills()
          Returns a list of this Nation's skills.
 java.util.List<UnitType> UnitType.getUnitTypesLearntInLostCity()
          Get a list of UnitType which can learn in a lost city rumour
 java.util.Map<UnitType,UnitType> FoundingFather.getUpgrades()
          Get the Upgrades value.
 java.util.Map<UnitType,UnitType> FoundingFather.getUpgrades()
          Get the Upgrades value.
 

Methods in net.sf.freecol.common.model with parameters of type UnitType
 boolean BuildingType.canAdd(UnitType unitType)
           
 boolean Building.canAdd(UnitType unitType)
          Checks if the specified UnitType may be added to this WorkLocation.
static boolean Unit.canBeStudent(UnitType typeStudent, UnitType typeTeacher)
          Returns true if this type of unit can be a student.
 boolean UnitType.canBeUpgraded(UnitType newType, UnitTypeChange.ChangeType changeType)
          Return true if this UnitType can be upgraded to the given UnitType by the given means of education.
 boolean Colony.canTrain(UnitType unitType)
          Returns true if this colony has a schoolhouse and the unit type is a skilled unit type with a skill level not exceeding the level of the schoolhouse.
 Unit ModelController.createUnit(java.lang.String taskID, Location location, Player owner, UnitType type)
          Creates a new unit.
 void Tile.expendResource(GoodsType goodsType, UnitType unitType, Settlement settlement)
          This method is called only when a new turn is beginning.
 int Resource.getBonus(GoodsType goodsType, UnitType unitType, int potential)
          Returns the bonus (checking available stock) for next turn.
 int UnitType.getEducationTurns(UnitType unitType)
          Get the EducationTurns value.
 int Tile.getMaximumPotential(GoodsType goodsType, UnitType unitType)
          Gets the maximum potential for producing the given type of goods.
static int Unit.getNeededTurnsOfTraining(UnitType typeTeacher, UnitType typeStudent)
          Gets the number of turns this unit has to train to educate a student.
 java.util.Set<Modifier> TileItemContainer.getProductionBonus(GoodsType goodsType, UnitType unitType)
          Describe getProductionBonus method here.
 java.util.Set<Modifier> Tile.getProductionBonus(GoodsType goodsType, UnitType unitType)
          Describe getProductionBonus method here.
 java.util.Set<Modifier> ResourceType.getProductionModifier(GoodsType goodsType, UnitType unitType)
           
 java.util.Set<Modifier> ColonyTile.getProductionModifiers(GoodsType goodsType, UnitType unitType)
          Returns the production of the given type of goods.
 int TileType.getProductionOf(GoodsType goodsType, UnitType unitType)
          Returns the amount of goods of given GoodsType this TileType can produce.
static int Unit.getSkillLevel(UnitType unitType)
          Gets the skill level of the given type of Unit.
 java.util.List<AbstractGoods> Tile.getSortedPotential(UnitType unitType, Player owner)
          Sorts GoodsTypes according to potential based on TileType, TileItemContainer if any.
static int Tile.getTileTypePotential(TileType tileType, GoodsType goodsType, TileItemContainer tiContainer, UnitType unitType)
          Calculates the potential of a certain GoodsType.
 int TileItemContainer.getTotalBonusPotential(GoodsType g, UnitType unitType, int tilePotential)
          Determine the total bonus for a GoodsType.
 int Europe.getUnitPrice(UnitType unitType)
          Returns the price of a unit in Europe.
static UnitType Unit.getUnitTypeTeaching(UnitType typeTeacher, UnitType typeStudent)
          Gets the UnitType which a teacher is teaching to a student.
static boolean Unit.isCarrier(UnitType unitType)
          Checks if this Unit is able to carry Locatables.
 boolean TileImprovementType.isWorkerTypeAllowed(UnitType unitType)
           
 int Tile.potential(GoodsType goodsType, UnitType unitType)
          The potential of this tile to produce a certain type of goods.
 void Europe.recruit(int slot, Unit unit, UnitType newRecruitable)
          Recruits a unit from Europe.
 void IndianSettlement.setLearnableSkill(UnitType skill)
          Sets the learnable skill for this Indian settlement.
 void UnitTypeChange.setNewUnitType(UnitType newNewUnitType)
          Set the NewUnitType value.
 void Europe.setRecruitable(int slot, UnitType type)
          Sets the type of the recruitable in Europe at the given slot to the given type.
 void PlayerExploredTile.setSkill(UnitType newSkill)
           
 void Unit.setType(UnitType newUnitType)
          Sets the type of the unit.
 int Resource.useQuantity(GoodsType goodsType, UnitType unitType, int potential)
          Reduces the available quantity by the bonus output of GoodsType.
 

Method parameters in net.sf.freecol.common.model with type arguments of type UnitType
 void FoundingFather.setUpgrades(java.util.Map<UnitType,UnitType> newUpgrades)
          Set the Upgrades value.
 void FoundingFather.setUpgrades(java.util.Map<UnitType,UnitType> newUpgrades)
          Set the Upgrades value.
 

Constructors in net.sf.freecol.common.model with parameters of type UnitType
AbstractUnit(UnitType unitType, Unit.Role someRole, int someNumber)
           
IndianSettlement(Game game, Player player, Tile tile, java.lang.String name, boolean isCapital, UnitType learnableSkill, java.util.Set<Player> isVisited, Unit missionary)
          The constructor to use.
Unit(Game game, Location location, Player owner, UnitType type, Unit.UnitState state)
          Initiate a new Unit with the specified parameters.
Unit(Game game, Location location, Player owner, UnitType type, Unit.UnitState state, EquipmentType... initialEquipment)
          Initiate a new Unit with the specified parameters.
Unit(Game game, Player owner, UnitType type)
          Initiate a new Unit of a specified type with the state set to Unit.UnitState.ACTIVE if a carrier and Unit.UnitState.SENTRY otherwise.
 

Uses of UnitType in net.sf.freecol.server.ai
 

Methods in net.sf.freecol.server.ai that return UnitType
 UnitType WorkerWish.getUnitType()
          Returns the type of unit needed for releasing this wish.
 

Methods in net.sf.freecol.server.ai with parameters of type UnitType
 ColonyPlan.Production ColonyPlan.getBestProduction(UnitType unitType)
           
 AIUnit EuropeanAIPlayer.trainAIUnitInEurope(UnitType unitType)
          Deprecated. Ask the server to train a unit in Europe on behalf of the AIPlayer
 AIUnit AIPlayer.trainAIUnitInEurope(UnitType unitType)
          Helper function for server communication - Ask the server to train a unit in Europe on behalf of the AIPlayer.
 void WorkerWish.update(int value, UnitType unitType, boolean expertNeeded)
          Updates this WorkerWish with the given attributes.
 

Constructors in net.sf.freecol.server.ai with parameters of type UnitType
WorkerWish(AIMain aiMain, Location destination, int value, UnitType unitType, boolean expertNeeded)
          Creates a new WorkerWish.
 

Uses of UnitType in net.sf.freecol.server.ai.goal
 

Methods in net.sf.freecol.server.ai.goal with parameters of type UnitType
 boolean Goal.canYieldUnit(UnitType ut, AIObject o)
          Used by a parent goal to check whether this goal, including subgoals, can yield a specific unit.
 float Goal.getYieldedUnitWeight(UnitType ut, AIObject o)
          Returns the absolute weight of the unit which would be yielded by Goal.yieldUnit(UnitType,AIObject).
 AIUnit Goal.yieldUnit(UnitType ut, AIObject o)
          Removes a unit from the goal, potentially from a subgoal, and yields it to the caller.
 

Uses of UnitType in net.sf.freecol.server.ai.mission
 

Methods in net.sf.freecol.server.ai.mission with parameters of type UnitType
 int TransportMission.getAvailableSpace(UnitType unitType, Location source, Location destination)
          Returns the available space for the given type of Unit at the given Location.
 

Uses of UnitType in net.sf.freecol.server.control
 

Methods in net.sf.freecol.server.control with parameters of type UnitType
 Unit ServerModelController.createUnit(java.lang.String taskID, Location location, Player owner, UnitType type)
          Creates a new unit.
 Unit ServerModelController.createUnit(java.lang.String taskID, Location location, Player owner, UnitType type, boolean secure, Connection connection)
          Creates a new unit.