public class Trigger extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected String |
Actor
Should be the trigger we have triggered.
|
protected UnrealId |
EventInstigator
Should be the Id of the player who triggered this
(ourself?).
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
| Constructor and Description |
|---|
Trigger()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
Trigger(String Actor,
UnrealId EventInstigator)
Creates new instance of command Trigger.
|
Trigger(Trigger original)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActor()
Should be the trigger we have triggered.
|
UnrealId |
getEventInstigator()
Should be the Id of the player who triggered this
(ourself?).
|
long |
getSimTime() |
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected String Actor
protected UnrealId EventInstigator
public Trigger(String Actor, UnrealId EventInstigator)
Actor - Should be the trigger we have triggered.EventInstigator - Should be the Id of the player who triggered this
(ourself?).public Trigger(Trigger original)
public Trigger()
public String getActor()
public UnrealId getEventInstigator()
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.