public class AdvancedLocomotion extends SimpleLocomotion
act, worldViewagent, controller, eventBus, log| Constructor and Description |
|---|
AdvancedLocomotion(UDKBot agent,
Logger log)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dodge(javax.vecmath.Vector3d direction)
Makes the bot to dodge in the selected direction (this is in fact single
jump that is executed to selected direction).
|
void |
doubleJump()
Makes the bot to double jump instantly (issues GB JUMP command)
|
void |
doubleJump(double secondJumpDelay,
double jumpZ)
Makes the bot to double jump instantly (issues GB JUMP command) with custom settings.
|
void |
jump()
Bot will make simple jump (Issues GB JUMP command)
|
void |
moveAlong(ILocated firstLocation,
ILocated secondLocation)
Makes the bot to move through first location to second location (may be
specified directly or some ILocated object may be supplied - carefull
with objects traversability).
|
void |
moveContinuos()
This makes the bot to run straight ahead continuously.
|
void |
moveTo(ILocated location)
Bot will move to supplied location.
|
void |
setRotationSpeed(Rotation newRotationRate)
Sets the rotation speed (rotation rate) for the bot.
|
void |
setRun()
Sets the running speed for the bot movement commands.
|
void |
setSpeed(double speedMultiplier)
Sets the speed multiplier for the bot.
|
void |
setWalk()
Sets the walking speed for the bot movement commands.
|
void |
stopMovement()
Makes the bot to stop all movement or turning.
|
void |
strafeLeft(double distance)
Bot strafes left.
|
void |
strafeLeft(double distance,
ILocated focusLocation)
Bot strafes left.
|
void |
strafeLeft(double distance,
UnrealId focusId)
Bot strafes left.
|
void |
strafeRight(double distance)
Bot strafes right.
|
void |
strafeRight(double distance,
ILocated focusLocation)
Bot strafes right.
|
void |
strafeRight(double distance,
UnrealId focusId)
Bot strafes right.
|
void |
strafeTo(ILocated location,
ILocated focusLocation)
Makes the bot to move to location while looking at focusLocation.
|
void |
strafeTo(ILocated location,
UnrealId focus)
Makes the bot to move at location, while looking at focus object.
|
void |
turnHorizontal(int amount)
Rotates the bot by the supported amount (in degrees) in left/right
direction (issues GB ROTATE command)
|
void |
turnTo(ILocated location)
Bot will turn to face supported location (issues GB TURNTO command)
|
void |
turnTo(Item item)
Bot will turn to face 'item' (isseus GB TURNTO command), the bot will face the item even if it or the item moves.
|
void |
turnTo(Player player)
Bot will turn to face 'player' (isseus GB TURNTO command), the bot will face the player even if it or the player moves.
|
void |
turnVertical(int amount)
Rotates the bot by the supported amount (in degrees) in up/down direction.
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toStringpublic void moveAlong(ILocated firstLocation, ILocated secondLocation)
firstLocation - First location we will go through.secondLocation - Second location we will go to (after reaching first).moveContinuous()public void moveContinuos()
moveAlong(ILocated, ILocated)public void strafeRight(double distance,
UnrealId focusId)
distance - - how far the bot strafes (in UT units, 1 UT unit equals
roughly 1 cm).focusId - - UnrealId of the object that should be the bot focus.strafeLeft(double,ILocated)public void strafeRight(double distance,
ILocated focusLocation)
distance - - how far the bot strafes (in UT units, 1 UT unit equals
roughly 1 cm).focusLocation - - location where the bot should lookstrafeLeft(double,ILocated)public void strafeRight(double distance)
distance - - how far the bot strafes (in UT units, 1 UT unit equals
roughly 1 cm).strafeLeft(double)public void strafeLeft(double distance,
UnrealId focusId)
distance - - how far the bot strafes (in UT units, 1 UT unit equals
roughly 1 cm).focusId - - UnrealId of the object that should be the bot focus.strafeRight(double,ILocated)public void strafeLeft(double distance,
ILocated focusLocation)
distance - - how far the bot strafes (in UT units, 1 UT unit equals
roughly 1 cm).focusLocation - - location where the bot should lookstrafeRight(double,ILocated)public void strafeLeft(double distance)
distance - - how far the bot strafes (in UT units, 1 UT unit equals
roughly 1 cm).strafeRight(double)public void strafeTo(ILocated location, ILocated focusLocation)
location - Location we will strafe to.focusLocation - Location we will look at while strafing.strafeTo(ILocated, UnrealId)public void strafeTo(ILocated location, UnrealId focus)
location - Location we will strafe to.focus - Object with UrealId. We will look at this location while
strafing. We will update our focus location according to the
current position of this obejct in UT.strafeTo(ILocated, ILocated)public void doubleJump()
jump(),
dodge(Vector3d)public void doubleJump(double secondJumpDelay,
double jumpZ)
See also SimpleLocomotion.jump().
TODO: NOT WORKING, GameBotsUDK must be altered to provide additional JUMP command attributes
secondJumpDelay - After time specified here, the bot performs second jump of a double jump (if DoubleJump is true). Time is in seconds. GB2004 default is 0.5s.jumpZ - Force vector specifying how big the jump should be. Can't be set more than 2 * JumpZ = 680 for double jump.jump(),
dodge(Vector3d)public void dodge(javax.vecmath.Vector3d direction)
direction - Vector (that will be normalized) that specifies direction of
the jump.jump(),
doubleJump()public void setSpeed(double speedMultiplier)
speedMultiplier - Ranges from 0.1 to 2 (max may be set in ini in [RemoteBot]
MaxSpeed)setRotationSpeed(Rotation)public void setRotationSpeed(Rotation newRotationRate)
newRotationRate - Default is Pitch=3072, Yaw=60000, Roll=2048. To achieve best
results we suggest to multiply the default setting.setSpeed(double)public void jump()
SimpleLocomotionjump in class SimpleLocomotionpublic void moveTo(ILocated location)
SimpleLocomotionmoveTo in class SimpleLocomotionSimpleLocomotion.stopMovement()public void setRun()
SimpleLocomotionsetRun in class SimpleLocomotionSimpleLocomotion.setWalk()public void setWalk()
SimpleLocomotionsetWalk in class SimpleLocomotionSimpleLocomotion.setRun()public void stopMovement()
SimpleLocomotionstopMovement in class SimpleLocomotionSimpleLocomotion.moveTo(ILocated)public void turnHorizontal(int amount)
SimpleLocomotionturnHorizontal in class SimpleLocomotionamount - Amount of rotation in degrees.SimpleLocomotion.turnVertical(int),
SimpleLocomotion.turnTo(ILocated)public void turnTo(ILocated location)
SimpleLocomotionturnTo in class SimpleLocomotionlocation - Location we will face.SimpleLocomotion.turnHorizontal(int),
SimpleLocomotion.turnVertical(int)public void turnTo(Player player)
SimpleLocomotionturnTo in class SimpleLocomotionplayer - Player we will face.public void turnTo(Item item)
SimpleLocomotionturnTo in class SimpleLocomotionitem - Item we will face.public void turnVertical(int amount)
SimpleLocomotionturnVertical in class SimpleLocomotionamount - Amount of rotation in degrees.SimpleLocomotion.turnHorizontal(int),
SimpleLocomotion.turnTo(ILocated)Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.