|
||||||||||
| 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.ObjectSelected
public class ObjectSelected
Asynchronous message. Player selected an object in the environment in PlayerMousing state (by pressing ALT + SHIFT to switch to this state). Corresponding GameBots message is SEL.
| Field Summary | |
|---|---|
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
ObjectHitLocation
Location of the hit point that we have selected this actor through. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
ObjectId
Id of the actor the player selected (actors include other players or bots and other physical objects that can block your path and even level geometry actors). |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
ObjectLocation
Location of the actor the player selected. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
PlayerId
Unique Id of the player that this event is for. |
protected String |
PlayerName
Name of the player that this event is for. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
| Constructor Summary | |
|---|---|
ObjectSelected()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
ObjectSelected(ObjectSelected original)
Cloning constructor. |
|
ObjectSelected(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId PlayerId,
String PlayerName,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId ObjectId,
cz.cuni.amis.pogamut.base3d.worldview.object.Location ObjectLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location ObjectHitLocation)
Creates new instance of command ObjectSelected. |
|
| Method Summary | |
|---|---|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getObjectHitLocation()
Location of the hit point that we have selected this actor through. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getObjectId()
Id of the actor the player selected (actors include other players or bots and other physical objects that can block your path and even level geometry actors). |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getObjectLocation()
Location of the actor the player selected. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getPlayerId()
Unique Id of the player that this event is for. |
String |
getPlayerName()
Name of the player that this event is for. |
long |
getSimTime()
|
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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId PlayerId
protected String PlayerName
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId ObjectId
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location ObjectLocation
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location ObjectHitLocation
| Constructor Detail |
|---|
public ObjectSelected(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId PlayerId,
String PlayerName,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId ObjectId,
cz.cuni.amis.pogamut.base3d.worldview.object.Location ObjectLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location ObjectHitLocation)
PlayerId - Unique Id of the player that this event is for.PlayerName - Name of the player that this event is for.ObjectId - Id of the actor the player selected (actors include
other players or bots and other physical objects that can
block your path and even level geometry actors). Will be "None" if nothing was selected (or actor was deselected).ObjectLocation - Location of the actor the player selected. Sent only if some object selected.ObjectHitLocation - Location of the hit point that we have selected this actor through. Sent only if some object selected.public ObjectSelected(ObjectSelected original)
public ObjectSelected()
| Method Detail |
|---|
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getPlayerId()
public String getPlayerName()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getObjectId()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getObjectLocation()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getObjectHitLocation()
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 | |||||||||