|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Event
public class Event
An event occurs after an in-game activity.
For the JSON object serialization, the field names are used. Eg.
{
id: 701,
type: 5,
t: 1142982000000
}
Fields annotated with PrimaryKey are used, if not the whole object is sent. HideIfNull indicates that the field is not sent at all, if the value is not set.
| Field Summary | |
|---|---|
boolean[] |
booleanParameters
Parameters of type boolean |
Cell |
cell
The Cell affected by the event |
static byte |
CELL_DISCOVERED
Event type when a new Cell has been discovered by a Player |
static byte |
CHALLENGE
A Challenge. |
static byte |
CHAT_MESSAGE_RECEIVED
Event type when a Gbangoo receives a Message |
static byte |
CONVERSATION
A Conversation. |
static byte |
CONVERSATION_MESSAGE_RECEIVED
Event type when a Player receives a Message from another Player |
static byte |
FRIEND_BROKE
Event type when a Player breaks its friendship with another Player |
Gbangoo |
gbangoo
The Gbangoo affected by the event |
static byte |
GBANGOO_DROPPED
Event type when a Gbangoo has been dropped into a Cell by a Player |
static byte |
GBANGOO_LIFTED
Event type when a Gbangoo has been picked up into a Pocket of a Player |
static byte |
GIFT_IN_POCKET_RECEIVED
Event type when an Entity has been given to a Player |
long |
id
The unique id of this event. |
Infrastructure |
infrastructure
The Infrastructure affected by the event |
long[] |
longParameters
Parameters of type boolean |
Player |
partner
The partner Player affected by the event |
Player |
player
Either Player who triggered the event, or the single player affected by the event |
static byte |
PLAYER_ARRIVED
Event type when a Player arrives at a Cell |
static byte |
PLAYER_LEFT
Event type when a Player left a Cell |
static byte |
POCKET_ITEM_LOST
Event type when an Entity has been given away from a Player |
static byte |
PUZZLE_COMPLETED
Event type when a Puzzle has been completed |
Resource |
resource
The Resource affected by the event |
short[] |
shortParameters
Parameters of type short |
static byte |
SHOUT_MESSAGE_RECEIVED
Event type when a Message has been shout into a Cell by a Player |
java.lang.String[] |
stringParameters
Parameters of type String |
long |
t
The time the event occured. |
Tag |
tag
The Tag affected by the event |
static byte |
TAG_CODE_ENTERED
Event type when a specific Tag code has been entered by a Player |
Tile |
tile
The Tile affected by the event |
static byte |
TRADE
A Trade. |
static byte |
TRADE_OFFER_RECEIVED
Event type when a Player received a message from another Player |
int |
type
The type of this event. |
static byte |
UNKNOWN
Unknown type of event. |
static byte |
VISIT
A Visit. |
| Constructor Summary | |
|---|---|
Event()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@HideIfNull public boolean[] booleanParameters
boolean
@HideIfNull public Cell cell
Cell affected by the event
public static final byte CELL_DISCOVERED
Cell has been discovered by a Player
public static final byte CHALLENGE
Challenge.
public static final byte CHAT_MESSAGE_RECEIVED
Gbangoo receives a Message
public static final byte CONVERSATION
Conversation.
public static final byte CONVERSATION_MESSAGE_RECEIVED
Player receives a Message from another Player
public static final byte FRIEND_BROKE
Player breaks its friendship with another Player
@HideIfNull public Gbangoo gbangoo
Gbangoo affected by the event
public static final byte GBANGOO_DROPPED
Gbangoo has been dropped into a Cell by a Player
public static final byte GBANGOO_LIFTED
Gbangoo has been picked up into a Pocket of a Player
public static final byte GIFT_IN_POCKET_RECEIVED
Entity has been given to a Player
@PrimaryKey public long id
@HideIfNull public Infrastructure infrastructure
Infrastructure affected by the event
@HideIfNull public long[] longParameters
boolean
@HideIfNull public Player partner
Player affected by the event
@HideIfNull public Player player
Player who triggered the event, or the single player affected by the event
public static final byte PLAYER_ARRIVED
Player arrives at a Cell
public static final byte PLAYER_LEFT
Player left a Cell
public static final byte POCKET_ITEM_LOST
Entity has been given away from a Player
public static final byte PUZZLE_COMPLETED
Puzzle has been completed
@HideIfNull public Resource resource
Resource affected by the event
@HideIfNull public short[] shortParameters
short
public static final byte SHOUT_MESSAGE_RECEIVED
Message has been shout into a Cell by a Player
@HideIfNull public java.lang.String[] stringParameters
String
public long t
@HideIfNull public Tag tag
Tag affected by the event
public static final byte TAG_CODE_ENTERED
Tag code has been entered by a Player
@HideIfNull public Tile tile
Tile affected by the event
public static final byte TRADE
Trade.
public static final byte TRADE_OFFER_RECEIVED
Player received a message from another Player
public int type
public static final byte UNKNOWN
public static final byte VISIT
Visit.
| Constructor Detail |
|---|
public Event()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||