|
|||||||||
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 java.lang.String |
Command
Available: MOVE, TURNTO. |
protected Location |
FocusLocation
Applicable for: MOVE. |
protected Location |
Location
Applicable for: MOVE, TURNTO. |
protected java.lang.String |
Player
Name of the affected player. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Rotation |
Rotation
Applicable for: TURNTO. |
protected java.lang.Boolean |
Walk
Applicable for: MOVE. |
Constructor Summary | |
---|---|
CommandPlayer()
Creates new instance of command CommandPlayer. |
|
CommandPlayer(CommandPlayer original)
Cloning constructor. |
|
CommandPlayer(java.lang.String Player,
java.lang.String Command,
Location Location,
Location FocusLocation,
java.lang.Boolean Walk,
Rotation Rotation)
Creates new instance of command CommandPlayer. |
Method Summary | |
---|---|
java.lang.String |
getCommand()
Available: MOVE, TURNTO. |
Location |
getFocusLocation()
Applicable for: MOVE. |
Location |
getLocation()
Applicable for: MOVE, TURNTO. |
java.lang.String |
getPlayer()
Name of the affected player. |
Rotation |
getRotation()
Applicable for: TURNTO. |
java.lang.Boolean |
isWalk()
Applicable for: MOVE. |
CommandPlayer |
setCommand(java.lang.String Command)
Available: MOVE, TURNTO. |
CommandPlayer |
setFocusLocation(Location FocusLocation)
Applicable for: MOVE. |
CommandPlayer |
setLocation(Location Location)
Applicable for: MOVE, TURNTO. |
CommandPlayer |
setPlayer(java.lang.String Player)
Name of the affected player. |
CommandPlayer |
setRotation(Rotation Rotation)
Applicable for: TURNTO. |
CommandPlayer |
setWalk(java.lang.Boolean Walk)
Applicable for: MOVE. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.String Player
protected java.lang.String Command
protected Location Location
protected Location FocusLocation
protected java.lang.Boolean Walk
protected Rotation Rotation
Constructor Detail |
---|
public CommandPlayer(java.lang.String Player, java.lang.String Command, Location Location, Location FocusLocation, java.lang.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 java.lang.String getPlayer()
public CommandPlayer setPlayer(java.lang.String Player)
public java.lang.String getCommand()
public CommandPlayer setCommand(java.lang.String Command)
public Location getLocation()
public CommandPlayer setLocation(Location Location)
public Location getFocusLocation()
public CommandPlayer setFocusLocation(Location FocusLocation)
public java.lang.Boolean isWalk()
public CommandPlayer setWalk(java.lang.Boolean Walk)
public Rotation getRotation()
public CommandPlayer setRotation(Rotation Rotation)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |