|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.KeyEvent
public class KeyEvent
Asynchronous message. Response to key event (key press, key release...). Corresponding GameBots message is KEYEVENT.
| Field Summary | |
|---|---|
protected String |
Action
Action that happened with the key. |
protected String |
Key
Key that has been pressed, released or held. |
protected String |
Player
Name of player who has triggered the key event. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
PlayerId
Id of player who has triggered the key event. |
protected String |
PlayerName
Name of player who has triggered the key event. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
ViewTarget
If the player that triggered the key event is observing another player in the game, then the id of that observed player will be exported here. |
| Constructor Summary | |
|---|---|
KeyEvent()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
KeyEvent(KeyEvent original)
Cloning constructor. |
|
KeyEvent(String Player,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId PlayerId,
String PlayerName,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId ViewTarget,
String Action,
String Key)
Creates new instance of command KeyEvent. |
|
| Method Summary | |
|---|---|
String |
getAction()
Action that happened with the key. |
String |
getKey()
Key that has been pressed, released or held. |
String |
getPlayer()
Name of player who has triggered the key event. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getPlayerId()
Id of player who has triggered the key event. |
String |
getPlayerName()
Name of player who has triggered the key event. |
long |
getSimTime()
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getViewTarget()
If the player that triggered the key event is observing another player in the game, then the id of that observed player will be exported here. |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent |
|---|
getWorldEvent |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| 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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId PlayerId
protected String PlayerName
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId ViewTarget
protected String Action
protected String Key
| Constructor Detail |
|---|
public KeyEvent(String Player,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId PlayerId,
String PlayerName,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId ViewTarget,
String Action,
String Key)
Player - Name of player who has triggered the key event.PlayerId - Id of player who has triggered the key event.PlayerName - Name of player who has triggered the key event.ViewTarget - If the player that triggered the key event is observing another player in the game, then the id of that observed player will be exported here.Action - Action that happened with the key. Possible are: PRESS, HOLD, RELEASE.Key - Key that has been pressed, released or held. See Interactions.EInputKey for choices - these are without the "IK_" prefix with original case.public KeyEvent(KeyEvent original)
public KeyEvent()
| Method Detail |
|---|
public String getPlayer()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getPlayerId()
public String getPlayerName()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getViewTarget()
public String getAction()
public String getKey()
public long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||