Uses of Class
net.sf.freecol.common.util.RandomChoice

Packages that use RandomChoice
net.sf.freecol.common.model Contains the game model. 
net.sf.freecol.common.util   
 

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

Methods in net.sf.freecol.common.model that return types with arguments of type RandomChoice
 java.util.List<RandomChoice<UnitType>> Player.generateRecruitablesList()
          Generate a weighted list of unit types recruitable by this player.
 java.util.List<RandomChoice<Monarch.MonarchAction>> Monarch.getActionChoices()
           
 java.util.List<RandomChoice<UnitType>> IndianNationType.getSkills()
          Returns a list of this Nation's skills.
 java.util.List<RandomChoice<ResourceType>> TileType.getWeightedResources()
           
 

Uses of RandomChoice in net.sf.freecol.common.util
 

Method parameters in net.sf.freecol.common.util with type arguments of type RandomChoice
static
<T> int
RandomChoice.getTotalProbability(java.util.Collection<RandomChoice<T>> input)
           
static
<T> T
RandomChoice.getWeightedRandom(java.util.Random random, java.util.Collection<RandomChoice<T>> input)
           
static
<T> T
RandomChoice.select(java.util.Collection<RandomChoice<T>> input, int probability)