|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Tile
public class Tile
A tile is a part of a cell. It can accommodate a Gbangoo, an Infrastructure, a Gube or a Tag.
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.
| 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 |
|---|
public boolean available
public int avatar
public int fertility
@HideIfNull public Gbangoo gbangoo
Gbangoo resident on it
@HideIfNull public Gube gube
Gube pulled out on it
@PrimaryKey public long id
@HideIfNull public Infrastructure infrastructure
Infrastructure built on it
@HideIfNull public Resource resource
@HideIfNull public Tag tag
Tag placed on it
| Constructor Detail |
|---|
public Tile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||