net.sf.freecol.server.model
Class ServerColonyTile
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.WorkLocation
net.sf.freecol.common.model.ColonyTile
net.sf.freecol.server.model.ServerColonyTile
- All Implemented Interfaces:
- Location, Ownable, ServerModelObject
public class ServerColonyTile
- extends ColonyTile
- implements ServerModelObject
The server version of a colony tile.
|
Field Summary |
private static java.util.logging.Logger |
logger
|
| Methods inherited from class net.sf.freecol.common.model.ColonyTile |
add, canAutoProduce, getLabel, getLocationName, getNoAddReason, getNoWorkReason, getOccupyingUnit, getPotentialProduction, getProduction, getProductionModifiers, getProductionOf, getProductionOf, getUnit, getUnitCapacity, getWorkTile, getWorkType, getXMLElementTagName, isColonyCenterTile, isOccupied, readFromXMLImpl, readFromXMLPartialImpl, relocateWorkers, remove, toString, toXMLImpl, toXMLPartialImpl |
| Methods inherited from class net.sf.freecol.common.model.UnitLocation |
canAdd, contains, dispose, disposeList, getGoodsContainer, getLocationNameFor, getSpaceTaken, getUnitCount, getUnitIterator, getUnitList, isEmpty, isFull, readChild, readChildren, 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, hasAbility, hasAttribute, hasListeners, 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
ServerColonyTile
public ServerColonyTile(Game game,
java.lang.String id)
- Trivial constructor required for all ServerModelObjects.
ServerColonyTile
public ServerColonyTile(Game game,
Colony colony,
Tile workTile)
- Creates at new ServerColonyTile.
- Parameters:
game - The Game this object belongs to.colony - The Colony this object belongs to.workTile - The tile in which this ColonyTile
represents a WorkLocation for.
csNewTurn
public void csNewTurn(java.util.Random random,
ChangeSet cs)
- New turn for this colony tile.
- 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:
- "serverColonyTile"