|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Event
org.gbanga.api.Challenge
public class Challenge
A challenge is a game between two players.
For the JSON object serialization, the field names are used. Eg.
{
initiator: { name: "someplayer" },
rounds: 7
}
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 | |
|---|---|
Player |
initiator
The contender. |
Cell |
location
The stage. |
Player |
opponent
The challenged Player. |
int |
rounds
The number of rounds played so far. |
int |
type
The type of a Challenge Event. |
Player |
winner
The winner of this challenge. |
| Fields inherited from class org.gbanga.api.Event |
|---|
booleanParameters, cell, CELL_DISCOVERED, CHALLENGE, CHAT_MESSAGE_RECEIVED, CONVERSATION, CONVERSATION_MESSAGE_RECEIVED, FRIEND_BROKE, gbangoo, GBANGOO_DROPPED, GBANGOO_LIFTED, GIFT_IN_POCKET_RECEIVED, id, infrastructure, longParameters, partner, player, PLAYER_ARRIVED, PLAYER_LEFT, POCKET_ITEM_LOST, PUZZLE_COMPLETED, resource, shortParameters, SHOUT_MESSAGE_RECEIVED, stringParameters, t, tag, TAG_CODE_ENTERED, tile, TRADE, TRADE_OFFER_RECEIVED, UNKNOWN, VISIT |
| Constructor Summary | |
|---|---|
Challenge()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Player initiator
public Cell location
public Player opponent
Player.
public int rounds
@PrimaryKey public int type
Challenge Event.
@HideIfNull public Player winner
null if the challenge is ongoing.
| Constructor Detail |
|---|
public Challenge()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||