|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Entity
org.gbanga.api.Cell
public class Cell
A cell is an island within the game world and it has a certain physical location.
For the JSON object serialization, the field names are used. Eg.
{
name: "some value",
temperature: 30,
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 | |
|---|---|
java.lang.String |
conditions
Local weather conditions at that cell. |
Player |
discoverer
The Player object of the discoverer of this cell. |
long |
discoveryTime
The timestamp when the cell was discovered. |
Message[] |
feed
The Message feed at this location containing for instance cell shouts. |
int |
flag
The image id of the flag for this cell. |
int |
height
The vertical dimension of this cell. |
long |
localTime
The local time offset at that cell. |
Feature |
location
The geographic location of this cell in Feature format (GeoJSON). |
Tile[] |
map
A list with Tiles this cell consists of. |
java.lang.String |
name
The screenname of the cell. |
byte |
rating
The overall averaged rating resulting from all user votes. |
Gbangoo[] |
residents
A list with resident Gbangoos and infrastructures. |
Tag[] |
tags
A list with Tags at this place. |
int |
temperature
The current temperature at that cell in Celcius degrees. |
int |
width
The horizontal dimension of this cell. |
| Constructor Summary | |
|---|---|
Cell()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@HideIfNull public java.lang.String conditions
public Player discoverer
Player object of the discoverer of this cell.
public long discoveryTime
@HideIfNull public Message[] feed
Message feed at this location containing for instance cell shouts.
public int flag
public int height
public long localTime
@HideIfNull public Feature location
Feature format (GeoJSON).
public Tile[] map
Tiles this cell consists of.
@PrimaryKey public java.lang.String name
public byte rating
public Gbangoo[] residents
Gbangoos and infrastructures.
public Tag[] tags
Tags at this place.
public int temperature
public int width
| Constructor Detail |
|---|
public Cell()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||