org.gbanga.api
Class Infrastructure

java.lang.Object
  extended by org.gbanga.api.Entity
      extended by org.gbanga.api.Infrastructure
All Implemented Interfaces:
Good

public class Infrastructure
extends Entity
implements Good

An infrastructure is built by a Gbangoo in the virtual world.

Details about JSON serialization

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.

Author:
Matthias

Field Summary
 Cell atCell
          The current location of the Infrastructure (if not in a Pocket).
 java.lang.String description
          The description of this Gbangoo.
 long id
          The unique identifier.
 int image
          The image id which represents the infrastructure.
 byte inActivity
          The current activity preoccupied with.
 boolean isGbangoo
          To differentiate from Gbangoo.
 java.lang.String name
          The name of the infrastructure.
 Player owner
          The owning Player.
 int tileIndex
          The location within the cell specified in @link Infrastructure#atCell.
 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

atCell

@HideIfNull
public Cell atCell
The current location of the Infrastructure (if not in a Pocket).


description

@HideIfNull
public java.lang.String description
The description of this Gbangoo.


id

@PrimaryKey
public long id
The unique identifier.


image

public int image
The image id which represents the infrastructure.


inActivity

public byte inActivity
The current activity preoccupied with.


isGbangoo

public boolean isGbangoo
To differentiate from Gbangoo.


name

public java.lang.String name
The name of the infrastructure.


owner

@HideIfNull
public Player owner
The owning Player.


tileIndex

@HideIfEqualsInt(value=-2147483648)
public int tileIndex
The location within the cell specified in @link Infrastructure#atCell. The value is not present or is negative if the tag is not in a Cell.


type

public long type
The type of infrastructure this is.

Constructor Detail

Infrastructure

public Infrastructure()