|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcivquest.units.MovePath
civquest.units.PossibleMovePath
A possible MovePath between two fields. It consists of a number of PathSteps. Each PathStep saves information about one Field the MovePath touchs - this includes the source-field!!! The units stored in the Collection (in MovePath) MUST ALWAYS be located on the field of the first PathStep, as long as this PossibleMovePath is in use.
Nested Class Summary | |
class |
PossibleMovePath.PathStep
One step of a PossibleMovePath. |
Field Summary |
Fields inherited from class civquest.units.MovePath |
turn, units |
Constructor Summary | |
PossibleMovePath(java.util.Collection units,
int turn)
|
Method Summary | |
void |
addStepToBeginning(Field to,
int speed,
int turn,
int time,
boolean sure)
Add a step with the given properties to the beginning of the step-list. |
void |
addStepToEnd(Field to,
int speed,
int turn,
int time,
boolean sure)
Add a step with the given properties to the end of the step-list. |
java.util.List |
getAllSteps()
Returns a List with all steps of this move-path. |
int |
getSize()
|
java.util.Iterator |
getStepIterator()
Returns an Iterator iterating over all steps of this PossibleMovePath. |
int |
getTimeOffset()
|
boolean |
isMovePathPossible()
|
void |
removeFirstStep()
|
void |
setTimeOffset(int timeOffset)
|
java.lang.String |
toString()
Retrieve a String representation of this object |
Methods inherited from class civquest.units.MovePath |
getTurn, getUnitLocation, getUnits, getUnitsIterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PossibleMovePath(java.util.Collection units, int turn)
Method Detail |
public boolean isMovePathPossible()
isMovePathPossible
in class MovePath
public void setTimeOffset(int timeOffset)
public int getTimeOffset()
public java.util.Iterator getStepIterator()
public java.util.List getAllSteps()
public int getSize()
public void addStepToBeginning(Field to, int speed, int turn, int time, boolean sure)
public void addStepToEnd(Field to, int speed, int turn, int time, boolean sure)
public void removeFirstStep()
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 |