PATH_ELEMENT - public abstract class AbstractUDKPathNavigator<PATH_ELEMENT extends ILocated> extends Object implements IUDKPathNavigator<PATH_ELEMENT>
IUDKPathNavigator that implements setBot(UDKBot) and
setExecutor(IPathExecutorHelper).| Modifier and Type | Field and Description |
|---|---|
protected UDKBot |
bot
Bot, the navigator is navigating.
|
protected IPathExecutorHelper<PATH_ELEMENT> |
executor
Executor who is using the navigator.
|
protected Self |
self
|
| Constructor and Description |
|---|
AbstractUDKPathNavigator() |
| Modifier and Type | Method and Description |
|---|---|
void |
navigate()
This method is regularly called by
UDKPathExecutor to continue the navigation of the bot
inside the UDK. |
protected abstract void |
navigate(int pathElementIndex)
Does the actual navigation of the bot, it should steer it towards path element of the index 'pathElementIndex'.
|
void |
setBot(UDKBot bot)
Sets the
UDKBot instance that the navigator should navigate. |
void |
setExecutor(IPathExecutorHelper<PATH_ELEMENT> owner)
Sets the
IPathExecutorHelper who is using the navigator, i.e., are calling its
IUDKPathNavigator#navigate(Self) and IUDKPathNavigator.reset()
methods. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrecision, newPath, resetprotected UDKBot bot
setBot(UDKBot).
See IUDKPathNavigator.setBot(UDKBot).protected IPathExecutorHelper<PATH_ELEMENT extends ILocated> executor
IUDKPathNavigator.setExecutor(IPathExecutorHelper)
for more info.protected Self self
public void setBot(UDKBot bot)
IUDKPathNavigatorUDKBot instance that the navigator should navigate. Use its AbstractEmbodiedAgent.getAct()
to pass commands to the bot.setBot in interface IUDKPathNavigator<PATH_ELEMENT extends ILocated>public void setExecutor(IPathExecutorHelper<PATH_ELEMENT> owner)
IUDKPathNavigatorIPathExecutorHelper who is using the navigator, i.e., are calling its
IUDKPathNavigator#navigate(Self) and IUDKPathNavigator.reset()
methods.
Used by IPathExecutorHelper implementation to inject its instance into the navigator,
so the navigator may call methods such as IPathExecutorHelper.checkStuckDetectors(),
IPathExecutorHelper.switchToAnotherPathElement(int), IPathExecutorHelper.stuck()
and IPathExecutorHelper.targetReached().
setExecutor in interface IUDKPathNavigator<PATH_ELEMENT extends ILocated>public void navigate()
IUDKPathNavigatorUDKPathExecutor to continue the navigation of the bot
inside the UDK.navigate in interface IUDKPathNavigator<PATH_ELEMENT extends ILocated>protected abstract void navigate(int pathElementIndex)
navigate().pathElementIndex - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.