net.sf.freecol.server.model
Class ServerEurope
java.lang.Object
net.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.model.FreeColGameObject
net.sf.freecol.common.model.UnitLocation
net.sf.freecol.common.model.Europe
net.sf.freecol.server.model.ServerEurope
- All Implemented Interfaces:
- Location, Named, Ownable, ServerModelObject
public class ServerEurope
- extends Europe
- implements ServerModelObject
The server version of Europe.
|
Field Summary |
private static java.util.logging.Logger |
logger
|
| Methods inherited from class net.sf.freecol.common.model.Europe |
add, canAdd, canBuildEquipment, getFeatureContainer, getLocationName, getNameKey, getOwner, getRecruitable, getRecruitPrice, getUnitPrice, getXMLElementTagName, hasAbility, hasCarrierWithSpace, increaseRecruitmentDifficulty, readChild, readFromXMLImpl, readFromXMLPartialImpl, recruitablesDiffer, setFeatureContainer, setOwner, setRecruitable, toString, toXMLImpl, toXMLPartialImpl |
| Methods inherited from class net.sf.freecol.common.model.UnitLocation |
contains, dispose, disposeList, getColony, getGoodsContainer, getLocationNameFor, getNoAddReason, getSettlement, getSpaceTaken, getTile, getUnitCapacity, getUnitCount, getUnitIterator, getUnitList, isEmpty, isFull, readChildren, remove, writeAttributes, writeChildren |
| Methods inherited from class net.sf.freecol.common.model.FreeColGameObject |
equals, equals, fundamentalDispose, getFreeColGameObject, getFreeColGameObject, getGame, getIntegerID, getSpecification, hashCode, isDisposed, isUninitialized, newLocation, readFromXML, readFromXMLPartialByClass, setDefaultId, setGame, setId, toXML, toXMLImpl, toXMLPartialByClass, updateFreeColGameObject |
| Methods inherited from class net.sf.freecol.common.model.FreeColObject |
addPropertyChangeListener, addPropertyChangeListener, dumpObject, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, hasAttribute, hasListeners, readAttributes, readAttributes, readChild, readChildren, readFromArrayElement, readFromArrayElement, readFromListElement, readFromXMLElement, readFromXMLImpl, removePropertyChangeListener, removePropertyChangeListener, save, save, setSpecification, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeChildren |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.freecol.common.model.Location |
getId |
logger
private static final java.util.logging.Logger logger
ServerEurope
public ServerEurope(Game game,
java.lang.String id)
- Trivial constructor required for all ServerModelObjects.
ServerEurope
public ServerEurope(Game game,
Player owner)
- Creates a new ServerEurope.
- Parameters:
game - The Game in which this object belong.owner - The Player that will be using this object of
Europe.
initializeMigration
public void initializeMigration(java.util.Random random)
- Generates the initial recruits for this player. Recruits may
be determined by the difficulty level, or generated randomly.
- Parameters:
random - A pseudo-random number source.
increasePrice
public void increasePrice(UnitType unitType,
int price)
- Increases the price for a unit.
- Parameters:
unitType - The UnitType, trained or purchasedprice - The current price of the unit
csNewTurn
public void csNewTurn(java.util.Random random,
ChangeSet cs)
- New turn for this colony tile.
TODO: give Europe a shipyard and remove this
- Specified by:
csNewTurn in interface ServerModelObject
- Parameters:
random - A Random number source.cs - A ChangeSet to update.
getServerXMLElementTagName
public java.lang.String getServerXMLElementTagName()
- Returns the tag name of the root element representing this object.
- Specified by:
getServerXMLElementTagName in interface ServerModelObject
- Returns:
- "serverEurope"