public class PlayerExploredTile extends FreeColGameObject
toXMLElement of Tile uses information from
this class to hide information that is not available.| Modifier and Type | Field and Description |
|---|---|
private Tension |
alarm |
private static java.lang.String |
ALARM_TAG |
private static java.lang.String |
COLONY_UNIT_COUNT_TAG |
private int |
colonyUnitCount |
private static java.lang.String |
LEARNABLE_SKILL_TAG |
private static java.util.logging.Logger |
logger |
private Unit |
missionary |
private static java.lang.String |
MISSIONARY_TAG |
private static java.lang.String |
MOST_HATED_TAG |
private Player |
mostHated |
private static java.lang.String |
OLD_TILE_IMPROVEMENT_TAG |
private Player |
owner
The owner of the tile.
|
private static java.lang.String |
OWNER_TAG |
private static java.lang.String |
OWNING_SETTLEMENT_TAG |
private Settlement |
owningSettlement
The owning settlement of the tile, if any.
|
private Player |
player
The owner of this view.
|
private static java.lang.String |
PLAYER_TAG |
private Tile |
tile
The tile viewed.
|
private static java.lang.String |
TILE_TAG |
private java.util.List<TileItem> |
tileItems
All known TileItems.
|
private static java.lang.String |
WANTED_GOODS_TAG |
ARRAY_SIZE_TAG, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, INFINITY, UNDEFINED, VALUE_TAG| Constructor and Description |
|---|
PlayerExploredTile(Game game,
Player player,
Tile tile)
Creates a new
PlayerExploredTile. |
PlayerExploredTile(Game game,
java.lang.String id)
Create a new player explored tile.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addTileItem(TileItem item)
Add a tile item to this pet.
|
void |
fixCache()
Use this PET so set an approximation to the correct cached
tile.
|
private java.util.List<TileItem> |
getTileItems()
Get the tile items in this pet.
|
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object.
|
java.lang.String |
getXMLTagName()
Gets the tag name used to serialize this object, generally the
class name starting with a lower case letter.
|
protected void |
readAttributes(FreeColXMLReader xr)
Reads the attributes of this object from an XML stream.
|
protected void |
readChild(FreeColXMLReader xr)
Reads a single child object.
|
protected void |
readChildren(FreeColXMLReader xr)
Reads the children of this object from an XML stream.
|
void |
writeAttributes(FreeColXMLWriter xw)
Write the attributes of this object to a stream.
|
void |
writeChildren(FreeColXMLWriter xw)
Write the children of this object to a stream.
|
checkIntegrity, cloneFreeColGameObject, dispose, disposeResources, equals, fundamentalDispose, getDisposeList, getGame, getLinkTarget, getSpecification, hashCode, internId, isDisposed, isUninitialized, readFromXML, setGameaddAbility, addFeatures, addModifier, addPropertyChangeListener, addPropertyChangeListener, applyModifiers, applyModifiers, applyModifiers, compareIds, compareTo, containsAbilityKey, containsModifierKey, copy, dumpCollection, dumpObject, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAbilities, getAbilities, getAbilities, getAbilities, getDefenceModifiers, getFeatureContainer, getId, getIdNumber, getIdType, getIdType, getModifiers, getModifiers, getModifiers, getModifiers, getPropertyChangeListeners, getPropertyChangeListeners, getSortedAbilities, getSortedCopy, getSortedModifiers, getSuffix, getSuffix, hasAbility, hasAbility, hasAbility, hasListeners, hasModifier, hasModifier, hasModifier, invokeMethod, logFreeColObjects, readFromXMLElement, readFromXMLPartial, readId, removeAbilities, removeAbility, removeFeatures, removeModifier, removeModifiers, removePropertyChangeListener, removePropertyChangeListener, save, save, save, save, serialize, serialize, setId, setSpecification, toString, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, toXMLPartialprivate static final java.util.logging.Logger logger
private Player player
private Tile tile
private Player owner
private Settlement owningSettlement
private java.util.List<TileItem> tileItems
private int colonyUnitCount
private Unit missionary
private Tension alarm
private Player mostHated
private static final java.lang.String ALARM_TAG
private static final java.lang.String COLONY_UNIT_COUNT_TAG
private static final java.lang.String LEARNABLE_SKILL_TAG
private static final java.lang.String MISSIONARY_TAG
private static final java.lang.String MOST_HATED_TAG
private static final java.lang.String OWNER_TAG
private static final java.lang.String OWNING_SETTLEMENT_TAG
private static final java.lang.String PLAYER_TAG
private static final java.lang.String TILE_TAG
private static final java.lang.String WANTED_GOODS_TAG
private static final java.lang.String OLD_TILE_IMPROVEMENT_TAG
public PlayerExploredTile(Game game, Player player, Tile tile)
PlayerExploredTile.game - The enclosing Game.player - The Player that owns this view.tile - The Tile to view.public PlayerExploredTile(Game game, java.lang.String id)
game - The enclosing Game.id - The object identifier.private java.util.List<TileItem> getTileItems()
TileItems.private void addTileItem(TileItem item)
item - The TileItem to add.public void fixCache()
public void writeAttributes(FreeColXMLWriter xw) throws javax.xml.stream.XMLStreamException
writeAttributes in class FreeColObjectxw - The FreeColXMLWriter to write to.javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.public void writeChildren(FreeColXMLWriter xw) throws javax.xml.stream.XMLStreamException
writeChildren in class FreeColObjectxw - The FreeColXMLWriter to write to.javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.protected void readAttributes(FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException
readAttributes in class FreeColObjectxr - The FreeColXMLReader to read from.javax.xml.stream.XMLStreamException - if there is a problem reading the stream.protected void readChildren(FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException
readChildren in class FreeColObjectxr - The FreeColXMLReader to read from.javax.xml.stream.XMLStreamException - if there is a problem reading the stream.protected void readChild(FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException
readChild in class FreeColObjectxr - The FreeColXMLReader to read from.javax.xml.stream.XMLStreamException - if there is a problem reading the stream.public java.lang.String getXMLTagName()
getXMLTagName in class FreeColObjectpublic static java.lang.String getXMLElementTagName()