|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.CommandPlayer
public class CommandPlayer
Representation of the GameBots2004 command COMPLR. Commands player's character to perform some action.
Field Summary | |
---|---|
protected String |
Command
Available: MOVE, TURNTO. |
protected Location |
FocusLocation
Applicable for: MOVE. |
protected Location |
Location
Applicable for: MOVE, TURNTO. |
protected String |
Player
Name of the affected player. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Rotation |
Rotation
Applicable for: TURNTO. |
protected Boolean |
Walk
Applicable for: MOVE. |
Constructor Summary | |
---|---|
CommandPlayer()
Creates new instance of command CommandPlayer. |
|
CommandPlayer(CommandPlayer original)
Cloning constructor. |
|
CommandPlayer(String Player,
String Command,
Location Location,
Location FocusLocation,
Boolean Walk,
Rotation Rotation)
Creates new instance of command CommandPlayer. |
Method Summary | |
---|---|
String |
getCommand()
Available: MOVE, TURNTO. |
Location |
getFocusLocation()
Applicable for: MOVE. |
Location |
getLocation()
Applicable for: MOVE, TURNTO. |
String |
getPlayer()
Name of the affected player. |
Rotation |
getRotation()
Applicable for: TURNTO. |
Boolean |
isWalk()
Applicable for: MOVE. |
CommandPlayer |
setCommand(String Command)
Available: MOVE, TURNTO. |
CommandPlayer |
setFocusLocation(Location FocusLocation)
Applicable for: MOVE. |
CommandPlayer |
setLocation(Location Location)
Applicable for: MOVE, TURNTO. |
CommandPlayer |
setPlayer(String Player)
Name of the affected player. |
CommandPlayer |
setRotation(Rotation Rotation)
Applicable for: TURNTO. |
CommandPlayer |
setWalk(Boolean Walk)
Applicable for: MOVE. |
String |
toHtmlString()
|
String |
toMessage()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROTOTYPE
protected String Player
protected String Command
protected Location Location
protected Location FocusLocation
protected Boolean Walk
protected Rotation Rotation
Constructor Detail |
---|
public CommandPlayer(String Player, String Command, Location Location, Location FocusLocation, Boolean Walk, Rotation Rotation)
Player
- Name of the affected player.Command
- Available: MOVE, TURNTO.Location
- Applicable for: MOVE, TURNTO.FocusLocation
- Applicable for: MOVE.Walk
- Applicable for: MOVE. If the character should walk instead of run.Rotation
- Applicable for: TURNTO.public CommandPlayer()
public CommandPlayer(CommandPlayer original)
original
- Method Detail |
---|
public String getPlayer()
public CommandPlayer setPlayer(String Player)
public String getCommand()
public CommandPlayer setCommand(String Command)
public Location getLocation()
public CommandPlayer setLocation(Location Location)
public Location getFocusLocation()
public CommandPlayer setFocusLocation(Location FocusLocation)
public Boolean isWalk()
public CommandPlayer setWalk(Boolean Walk)
public Rotation getRotation()
public CommandPlayer setRotation(Rotation Rotation)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |