|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcivquest.gameChange.AbstractFieldNationUnitChange
civquest.units.gameChange.ConstructUnit
This GameChange constructs a new Unit and adds it to MapData. Before executing, the coords, unitIDs, nationIDs-arrays all have length 1 and store the field-coordinate / UnitChange.ADD_UNIT / the id of the nation the new unit belongs to. After having called execute, unitIDs[0] stores the id of the newly constructed unit.
Field Summary |
Fields inherited from class civquest.gameChange.AbstractFieldNationUnitChange |
coords, name, nationIDs, unitIDs |
Fields inherited from interface civquest.gameChange.UnitChange |
ADD_UNIT, NOT_KNOWN, RESET_UNIT_TIME |
Fields inherited from interface civquest.gameChange.NationChange |
ACTIVATE_NATION, ADD_NATION |
Constructor Summary | |
ConstructUnit(java.lang.String modelName,
Coordinate coord,
int nation)
|
Method Summary | |
void |
execute()
|
Methods inherited from class civquest.gameChange.AbstractFieldNationUnitChange |
getCoords, getNationIDs, getUnitIDs, notifyListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstructUnit(java.lang.String modelName, Coordinate coord, int nation)
Method Detail |
public void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |