org.gbanga.api
Class Tile

java.lang.Object
  extended by org.gbanga.api.Tile

public class Tile
extends java.lang.Object

A tile is a part of a cell. It can accommodate a Gbangoo, an Infrastructure, a Gube or a Tag.

Details about JSON serialization

For the JSON object serialization, the field names are used. Eg.

 {
   avatar: 30,
   fertility: 100,
   available: true,
   gbangoo: { id: 777 }
 }
 

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
 boolean available
          If this tile is available to walk on
 int avatar
          The id of the representing image
 int fertility
          The fertility index important for mining success
 Gbangoo gbangoo
          If there is a Gbangoo resident on it
 Gube gube
          If there is a Gube pulled out on it
 long id
          The id of the tile.
 Infrastructure infrastructure
          If there is an Infrastructure built on it
 Resource resource
          If there is a already-mined Resource left on it
 Tag tag
          If there is a Tag placed on it
 
Constructor Summary
Tile()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

available

public boolean available
If this tile is available to walk on


avatar

public int avatar
The id of the representing image


fertility

public int fertility
The fertility index important for mining success


gbangoo

@HideIfNull
public Gbangoo gbangoo
If there is a Gbangoo resident on it


gube

@HideIfNull
public Gube gube
If there is a Gube pulled out on it


id

@PrimaryKey
public long id
The id of the tile.


infrastructure

@HideIfNull
public Infrastructure infrastructure
If there is an Infrastructure built on it


resource

@HideIfNull
public Resource resource
If there is a already-mined Resource left on it


tag

@HideIfNull
public Tag tag
If there is a Tag placed on it

Constructor Detail

Tile

public Tile()