net.sf.freecol.common.model
Class LostCityRumour

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.common.model.FreeColGameObject
          extended by net.sf.freecol.common.model.TileItem
              extended by net.sf.freecol.common.model.LostCityRumour
All Implemented Interfaces:
Locatable, Named

public class LostCityRumour
extends TileItem
implements Named

Represents a lost city rumour.


Nested Class Summary
static class LostCityRumour.RumourType
          Constants describing types of Lost City Rumours.
 
Field Summary
 
Fields inherited from class net.sf.freecol.common.model.TileItem
RESOURCE_ZINDEX, RUMOUR_ZINDEX
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
LostCityRumour(Game game, org.w3c.dom.Element e)
          Creates a new LostCityRumour instance.
LostCityRumour(Game game, Tile tile)
          Creates a new LostCityRumour instance.
LostCityRumour(Game game, Tile tile, LostCityRumour.RumourType type, java.lang.String name)
          Creates a new LostCityRumour instance.
LostCityRumour(Game game, javax.xml.stream.XMLStreamReader in)
          Creates a new LostCityRumour instance.
 
Method Summary
 java.lang.String getName()
          Get the Name value.
 LostCityRumour.RumourType getType()
          Get the Type value.
static java.lang.String getXMLElementTagName()
           
 int getZIndex()
          Get the ZIndex value.
 void setName(java.lang.String newName)
          Set the Name value.
 void setType(LostCityRumour.RumourType newType)
          Set the Type value.
 
Methods inherited from class net.sf.freecol.common.model.TileItem
dispose, getLocation, getSpaceTaken, getTile, setLocation
 
Methods inherited from class net.sf.freecol.common.model.FreeColGameObject
addToRemoveElement, equals, equals, getFreeColGameObject, getFreeColGameObject, getGame, getGameOptions, getIntegerID, hashCode, hasID, isDisposed, isUninitialized, readFromXML, setGame, setId, toSavedXML, toString, toXML, updateFreeColGameObject, updateID
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, hasAbility, hasAttribute, hasListeners, readFromXMLElement, removePropertyChangeListener, removePropertyChangeListener, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LostCityRumour

public LostCityRumour(Game game,
                      Tile tile)
Creates a new LostCityRumour instance.

Parameters:
game - a Game value
tile - a Tile value

LostCityRumour

public LostCityRumour(Game game,
                      Tile tile,
                      LostCityRumour.RumourType type,
                      java.lang.String name)
Creates a new LostCityRumour instance.

Parameters:
game - a Game value
tile - a Tile value
type - a RumourType value
name - a String value

LostCityRumour

public LostCityRumour(Game game,
                      javax.xml.stream.XMLStreamReader in)
               throws javax.xml.stream.XMLStreamException
Creates a new LostCityRumour instance.

Parameters:
game - a Game value
in - a XMLStreamReader value
Throws:
javax.xml.stream.XMLStreamException - if an error occurs

LostCityRumour

public LostCityRumour(Game game,
                      org.w3c.dom.Element e)
Creates a new LostCityRumour instance.

Parameters:
game - a Game value
e - an Element value
Method Detail

getType

public final LostCityRumour.RumourType getType()
Get the Type value.

Returns:
a RumourType value

setType

public final void setType(LostCityRumour.RumourType newType)
Set the Type value.

Parameters:
newType - The new Type value.

getName

public final java.lang.String getName()
Get the Name value.

Specified by:
getName in interface Named
Returns:
a String value

setName

public final void setName(java.lang.String newName)
Set the Name value.

Parameters:
newName - The new Name value.

getZIndex

public final int getZIndex()
Get the ZIndex value.

Specified by:
getZIndex in class TileItem
Returns:
an int value

getXMLElementTagName

public static java.lang.String getXMLElementTagName()