public class Move extends CommandMessage
Modifier and Type | Field and Description |
---|---|
protected Location |
FirstLocation
The bot will start moving to this location first.
|
protected Location |
FocusLocation
Here you can specify location you want to face during movement.
|
protected UnrealId |
FocusTarget
Here you can specify UnrealId of the object you want to face during movement (typically enemy player you want to shoot at).
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected Location |
SecondLocation
After reaching FirstLocation, the bot will start moving to location specified here.
|
Constructor and Description |
---|
Move()
Creates new instance of command Move.
|
Move(Location FirstLocation,
Location SecondLocation,
UnrealId FocusTarget,
Location FocusLocation)
Creates new instance of command Move.
|
Move(Move original)
Cloning constructor.
|
Modifier and Type | Method and Description |
---|---|
Location |
getFirstLocation()
The bot will start moving to this location first.
|
Location |
getFocusLocation()
Here you can specify location you want to face during movement.
|
UnrealId |
getFocusTarget()
Here you can specify UnrealId of the object you want to face during movement (typically enemy player you want to shoot at).
|
Location |
getSecondLocation()
After reaching FirstLocation, the bot will start moving to location specified here.
|
Move |
setFirstLocation(Location FirstLocation)
The bot will start moving to this location first.
|
Move |
setFocusLocation(Location FocusLocation)
Here you can specify location you want to face during movement.
|
Move |
setFocusTarget(UnrealId FocusTarget)
Here you can specify UnrealId of the object you want to face during movement (typically enemy player you want to shoot at).
|
Move |
setSecondLocation(Location SecondLocation)
After reaching FirstLocation, the bot will start moving to location specified here.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected Location FirstLocation
protected Location SecondLocation
protected UnrealId FocusTarget
protected Location FocusLocation
public Move(Location FirstLocation, Location SecondLocation, UnrealId FocusTarget, Location FocusLocation)
FirstLocation
- The bot will start moving to this location first. If not specified, the bot won't move (even if SecondLocation is specified).SecondLocation
- After reaching FirstLocation, the bot will start moving to location specified here. If not specified the movement will quit at FirstLocation point.FocusTarget
- Here you can specify UnrealId of the object you want to face during movement (typically enemy player you want to shoot at). Player Ids will work, all NavPoints Ids, Movers and some of the items (with unique Id). This attribute is parsed before FocusLocation attribute and if set FocusLocation attribute will be ignored.FocusLocation
- Here you can specify location you want to face during movement. This attribute is parsed after FocusTarget attribute and will be ignored if FocusTarget is set.public Move()
public Move(Move original)
original
- public Location getFirstLocation()
public Move setFirstLocation(Location FirstLocation)
public Location getSecondLocation()
public Move setSecondLocation(Location SecondLocation)
public UnrealId getFocusTarget()
public Move setFocusTarget(UnrealId FocusTarget)
public Location getFocusLocation()
public Move setFocusLocation(Location FocusLocation)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.