|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.tudey.server.logic.BehaviorLogic.PathCandidate
protected static class BehaviorLogic.PathCandidate
A candidate path under consideration for branching.
| Field Summary | |
|---|---|
protected int |
_cidx
The index of the closest node on the path. |
protected Vector2f[] |
_path
The base path. |
protected Logic |
_target
The logic with which the path is associated. |
| Constructor Summary | |
|---|---|
BehaviorLogic.PathCandidate(Logic target,
Vector2f[] path,
int cidx)
Creates a new path candidate. |
|
| Method Summary | |
|---|---|
Vector2f[] |
getRemainingPath(float angle)
Returns the portion of the path from the closest node to the end, using the supplied angle to determine which direction to travel along the path in cases of ambiguity. |
Logic |
getTarget()
Returns a reference to the logic associated with the path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Logic _target
protected Vector2f[] _path
protected int _cidx
| Constructor Detail |
|---|
public BehaviorLogic.PathCandidate(Logic target,
Vector2f[] path,
int cidx)
| Method Detail |
|---|
public Logic getTarget()
public Vector2f[] getRemainingPath(float angle)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||