civquest.city.gameChange
Class ConstructCity
java.lang.Object
civquest.gameChange.AbstractCityFieldNationChange
civquest.city.gameChange.ConstructCity
- All Implemented Interfaces:
- CityChange, FieldChange, GameChange, NationChange
- public class ConstructCity
- extends AbstractCityFieldNationChange
This GameChange constructs a new City and places it on a given map-Field.
It performs all necessary datastructure-updates.
Before executing, the coords, cityIDs, playerIDs-arrays all have length 1 and
store the field-coordinate / CityChange.ADD_UNIT / the id of the player the new
city belongs to. After having called execute, cityIDs has length 1 and
cityIDs[0] stores the id of the newly constructed city.
Method Summary |
void |
execute()
|
java.lang.String |
toString()
Retrieve a String representation of this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstructCity
public ConstructCity(Coordinate coord,
int nation)
execute
public void execute()
toString
public java.lang.String toString()
- Retrieve a String representation of this object
- Returns:
- a
String
representation of this object. - See Also:
Object.toString()