org.gbanga.api
Class Cell

java.lang.Object
  extended by org.gbanga.api.Entity
      extended by org.gbanga.api.Cell

public class Cell
extends Entity

A cell is an island within the game world and it has a certain physical location.

Details about JSON serialization

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.

Author:
Matthias

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.
 Entity[] residents
          A list with resident Gbangoos and (@link Infrastructure}.
 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

conditions

@HideIfNull
public java.lang.String conditions
Local weather conditions at that cell.


discoverer

public Player discoverer
The Player object of the discoverer of this cell.


discoveryTime

public long discoveryTime
The timestamp when the cell was discovered.


feed

@HideIfNull
public Message[] feed
The Message feed at this location containing for instance cell shouts.


flag

public int flag
The image id of the flag for this cell.


height

public int height
The vertical dimension of this cell.


localTime

public long localTime
The local time offset at that cell.


location

@HideIfNull
public Feature location
The geographic location of this cell in Feature format (GeoJSON).

See Also:
GeoJSON.org

map

public Tile[] map
A list with Tiles this cell consists of.


name

@PrimaryKey
public java.lang.String name
The screenname of the cell.


rating

public byte rating
The overall averaged rating resulting from all user votes.


residents

public Entity[] residents
A list with resident Gbangoos and (@link Infrastructure}.


tags

public Tag[] tags
A list with Tags at this place.


temperature

public int temperature
The current temperature at that cell in Celcius degrees.


width

public int width
The horizontal dimension of this cell.

Constructor Detail

Cell

public Cell()