|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcivquest.gameChange.AbstractFieldUnitChange
civquest.units.gameChange.MoveUnit
Moves a unit to a given field, which has to be a neighbor-field of the units current field.
Field Summary |
Fields inherited from class civquest.gameChange.AbstractFieldUnitChange |
coords, name, unitIDs |
Fields inherited from interface civquest.gameChange.UnitChange |
ADD_UNIT, NOT_KNOWN, RESET_UNIT_TIME |
Constructor Summary | |
MoveUnit(Coordinate to,
long unitID,
int dTime)
Constructs a new MoveUnit-GameChange. |
Method Summary | |
void |
execute()
|
java.lang.String |
toString()
Retrieve a String representation of this object |
Methods inherited from class civquest.gameChange.AbstractFieldUnitChange |
getCoords, getUnitIDs, notifyListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MoveUnit(Coordinate to, long unitID, int dTime)
to
- dest-field of the moveunitID
- id of the unit we want to movedTime
- time to add to timeUsedThisTurnMethod Detail |
public void execute()
public java.lang.String toString()
String
representation of this object.Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |