public class Shoot extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
Alt
If you send True to this you will alt fire instead of normal
fire.
|
protected Location |
Location
Location you want to shoot at.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected UnrealId |
Target
The unique Id of your target.
|
| Constructor and Description |
|---|
Shoot()
Creates new instance of command Shoot.
|
Shoot(Location Location,
UnrealId Target,
Boolean Alt)
Creates new instance of command Shoot.
|
Shoot(Shoot original)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getLocation()
Location you want to shoot at.
|
UnrealId |
getTarget()
The unique Id of your target.
|
Boolean |
isAlt()
If you send True to this you will alt fire instead of normal
fire.
|
Shoot |
setAlt(Boolean Alt)
If you send True to this you will alt fire instead of normal
fire.
|
Shoot |
setLocation(Location Location)
Location you want to shoot at.
|
Shoot |
setTarget(UnrealId Target)
The unique Id of your target.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected Location Location
protected UnrealId Target
protected Boolean Alt
public Shoot(Location Location, UnrealId Target, Boolean Alt)
Location - Location you want to shoot at.Target - The unique Id of your target. If you specify a target, and
it is visible to you, the server will provide aim correction
and target leading for you. If not you just shoot at the
location specified.Alt - If you send True to this you will alt fire instead of normal
fire. For normal fire you don't need to send this argument
at all.public Shoot()
public Shoot(Shoot original)
original - public Location getLocation()
public UnrealId getTarget()
public Shoot setTarget(UnrealId Target)
public Boolean isAlt()
public Shoot setAlt(Boolean Alt)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.