|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--cad.simcad.worldsimulator.objects.units.UnitControler
| Field Summary | |
protected java.util.Enumeration |
_currentPath
The current enumeration of PathPlace to follow |
protected PathPlace |
_nextDest
The very next destination |
protected MyUnit |
_unit
|
| Constructor Summary | |
UnitControler(MyUnit u)
Creates new UnitControler |
|
| Method Summary | |
void |
addPathWayPoints(PathPlaceSet path)
Append the given path to set of paths for the units. |
void |
adjacentReached()
|
PathPlace |
getIntermediaryDest()
|
PathPlace |
getLastPathPlaceToMoveTo()
|
PathPlace |
getNextPlace()
Returns the next place where the units has to move to |
void |
setFirstPathTo(PathPlaceSet path)
Replace the current path taken by the unit by the given path |
void |
stopUnit()
Remove all the waypoint for the unit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MyUnit _unit
protected java.util.Enumeration _currentPath
protected PathPlace _nextDest
| Constructor Detail |
public UnitControler(MyUnit u)
| Method Detail |
public void stopUnit()
public PathPlace getNextPlace()
public void adjacentReached()
public PathPlace getIntermediaryDest()
public PathPlace getLastPathPlaceToMoveTo()
public void setFirstPathTo(PathPlaceSet path)
throws UnitException
UnitException - if the current PathPlace does not match the origin of pathpublic void addPathWayPoints(PathPlaceSet path)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||