civquest.map
Class MapObject

java.lang.Object
  extended bycivquest.map.MapObject
Direct Known Subclasses:
City, Unit

public abstract class MapObject
extends java.lang.Object

Something produced by a city or otherwise owned by a nation, appearing uniquely on the map.


Field Summary
protected  Field field
           
protected  Nation nation
           
 
Constructor Summary
MapObject()
           
MapObject(Field field)
           
MapObject(Nation nation)
           
MapObject(Nation nnation, Field nfield)
           
 
Method Summary
 Field getField()
           
 Nation getNation()
           
 Coordinate getPosition()
           
 void setField(Field nfield)
           
 void setNation(Nation nation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nation

protected Nation nation

field

protected Field field
Constructor Detail

MapObject

public MapObject()

MapObject

public MapObject(Field field)

MapObject

public MapObject(Nation nation)

MapObject

public MapObject(Nation nnation,
                 Field nfield)
Method Detail

getPosition

public Coordinate getPosition()

setField

public void setField(Field nfield)

getField

public Field getField()

setNation

public void setNation(Nation nation)

getNation

public Nation getNation()