public class ObjectSelected extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected Location |
ObjectHitLocation
Location of the hit point that we have selected this actor through.
|
protected 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 Location |
ObjectLocation
Location of the actor the player selected.
|
protected 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 and Description |
|---|
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(UnrealId PlayerId,
String PlayerName,
UnrealId ObjectId,
Location ObjectLocation,
Location ObjectHitLocation)
Creates new instance of command ObjectSelected.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getObjectHitLocation()
Location of the hit point that we have selected this actor through.
|
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).
|
Location |
getObjectLocation()
Location of the actor the player selected.
|
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() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected UnrealId PlayerId
protected String PlayerName
protected UnrealId ObjectId
protected Location ObjectLocation
protected Location ObjectHitLocation
public ObjectSelected(UnrealId PlayerId, String PlayerName, UnrealId ObjectId, Location ObjectLocation, 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()
public UnrealId getPlayerId()
public String getPlayerName()
public UnrealId getObjectId()
public Location getObjectLocation()
public Location getObjectHitLocation()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.