Package net.sf.freecol.common.model

Contains the game model.

See:
          Description

Interface Summary
CombatModel  
Features  
FreeColGameObjectListener Interface for retriving information about a the creation/deletion of FreeColGameObjects.
Locatable An object that can be put in a Location.
Location A place where a Locatable can be put.
ModelController The ModelController is used by the model to perform tasks which cannot be done by the model.
Nameable An object with a name that can be changed.
Named An object that has a proper name, such as a Settlement, Unit or Player.
Ownable Interface for objects which can be owned by a Player.
TransactionListener Interface for classes which listen to transactions in market
Typed<T extends FreeColGameObjectType> An object, in particular a FreeColGameObject, that has a FreeColGameObjectType.
WorkLocation This interface marks the locations where a Unit can work.
 

Class Summary
Ability The Ability class encapsulates a bonus or penalty that can be applied to any action within the game, most obviously combat.
AbstractGoods Represents a certain amount of a GoodsType.
AbstractUnit Contains the information necessary to create a new unit.
BuildableType Contains information on buildable types.
Building Represents a building in a colony.
BuildingType Contains information on building types, like the number of upgrade levels a given building type can have.
Colony Represents a colony.
ColonyTile Represents a work location on a tile.
ColonyTradeItem  
CombatModel.CombatOdds Odds a particular outcome will occur in combat.
CombatModel.CombatResult  
DifficultyLevel Represents a difficulty level.
DiplomaticTrade The class DiplomaticTrade represents an offer one player can make another.
EquipmentType  
Europe Represents Europe in the game.
EuropeanNationType Represents one of the European nations present in the game, i.e.
ExportData Objects of this class hold the export data for a particular type of goods.
Feature The Feature class encapsulates a bonus or penalty that can be applied to any action within the game, most obviously combat.
FeatureContainer  
FoundingFather Represents one FoundingFather to be contained in a Player object.
FreeColGameObject The superclass of all game objects in FreeCol.
FreeColGameObjectType The base class for all types defined by the specification.
FreeColObject  
Game The main component of the game model.
GameOptions Keeps track of the available game options.
GoldTradeItem  
Goods Represents locatable goods of a specified type and amount.
GoodsContainer Contains goods and can be used by a Location to make certain tasks easier.
GoodsTradeItem  
GoodsType  
HighScore  
HistoryEvent  
IndianNationType Represents one of the Indian nations present in the game.
IndianSettlement Represents an Indian settlement.
LostCityRumour Represents a lost city rumour.
Map An isometric map.
Map.Position Represents a position on the Map.
Market This class implements a simple economic model whereby a market holds all goods that have been sold and the price of a particular type of good is determined solely by its availability in that market.
MarketData Objects of this class hold the market data for a particular type of good.
ModelMessage Contains a message about a change in the model.
Modifier The Modifier class encapsulates a bonus or penalty that can be applied to any action within the game, most obviously combat.
Monarch This class implements the player's monarch, whose functions prior to the revolution include raising taxes, declaring war on other European countries, and occasionally providing military support.
Nation Represents one of the nations present in the game.
NationOptions  
NationType Represents one of the nations present in the game.
PathNode Represents a single Tile in a path.
Player Represents a player.
PlayerExploredTile This class contains the mutable tile data visible to a specific player.
Region A named region on the map.
Resource Represents a locatable goods of a specified type and quantity.
ResourceType  
Scope The Scope class determines whether a given FreeColGameObjectType fulfills certain requirements.
Settlement The super class of all settlements on the map (that is colonies and indian settlements).
SimpleCombatModel This class implements the original Colonization combat model.
StanceTradeItem  
Tension  
Tile Represents a single tile on the Map.
TileImprovement Represents a tile improvement, such as a river or road.
TileImprovementType  
TileItem Represents a TileItem item on a Tile.
TileItemContainer Contains TileItems and can be used by a Tile to make certain tasks easier.
TileType  
TradeItem One of the items a DiplomaticTrade consists of.
TradeRoute A TradeRoute holds all information for a unit to follow along a trade route.
TradeRouteStop  
Turn Represents a given turn in the game.
TypeCountMap<T extends FreeColGameObjectType>  
Unit Represents all pieces that can be moved on the map-board.
UnitTradeItem  
UnitType  
UnitTypeChange  
 

Enum Summary
Colony.ColonyChangeEvent  
Colony.NoBuildReason  
CombatModel.CombatResultType  
FoundingFather.FoundingFatherType  
HighScore.Level On retirement, an object will be named in honour of the player.
HistoryEvent.Type  
IndianNationType.AggressionLevel  
IndianNationType.SettlementNumber  
LostCityRumour.RumourType Constants describing types of Lost City Rumours.
Map.Direction The directions a Unit can move to.
Map.PathType Constant used for given options in Map.findPath(Unit, Tile, Tile).
ModelMessage.MessageType Constants describing the type of message.
Modifier.Type  
Monarch.MonarchAction Constants describing monarch actions.
NationOptions.Advantages National advantages for European players only.
NationOptions.NationState Nations may be available to all players, to AI players only, or to no players.
Player.PlayerType  
Player.Stance Constants for describing the stance towards a player.
Region.RegionType  
Settlement.SettlementType  
Tension.Level Constants for describing alarm levels.
TileType.RangeType  
Unit.MoveType A move type.
Unit.Role The roles a Unit can have.
Unit.UnitState A state a Unit can have.
UnitTypeChange.ChangeType  
 

Package net.sf.freecol.common.model Description

Contains the game model.

The superclass of all model objects is FreeColGameObject. The main component of the game model and the owner of the other game objects is Game. Every FreeColGamObject have a reference to the Game it belongs to.