|
|||||||||
| 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.Infrastructure
public class Infrastructure
An infrastructure is built by a Gbangoo in the virtual world.
For the JSON object serialization, the field names are used. Eg.
{
id: 5012,
image: 7232,
type: 12
}
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 | |
|---|---|
long |
id
The unique identifier. |
int |
image
The image id which represents the infrastructure. |
java.lang.String |
name
The name of the infrastructure. |
Player |
owner
The owning Player. |
long |
type
The type of infrastructure this is. |
| Constructor Summary | |
|---|---|
Infrastructure()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@PrimaryKey public long id
public int image
public java.lang.String name
@HideIfNull public Player owner
Player.
public long type
| Constructor Detail |
|---|
public Infrastructure()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||