org.gbanga.api
Class Gbangoo

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

public class Gbangoo
extends Entity
implements Good

A Gbangoo is a virtual/digital citizen of the Gbanga world.

Details about JSON serialization

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

 {
   id: 34734,
   name: "some value",
   image: 8373
 }
 

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 Gbangoo (if not in a Pocket).
 int[] characteristics
          Characteristics of the Gbangoo.
 long id
          The unique identifier for this Gbangoo.
 int image
          The image id for this Gbangoo.
 byte inActivity
          The current activity preoccupied with.
 java.util.HashMap<java.lang.String,java.lang.String> memory
          The personal memory.
 java.lang.String name
          The screenname.
 Player owner
          The owning Player.
 int tileIndex
          The location within the cell specified in @link Gbangoo#atCell.
 
Constructor Summary
Gbangoo()
           
 
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 Gbangoo (if not in a Pocket).


characteristics

public int[] characteristics
Characteristics of the Gbangoo.


id

@PrimaryKey
public long id
The unique identifier for this Gbangoo.


image

public int image
The image id for this Gbangoo.


inActivity

public byte inActivity
The current activity preoccupied with.


memory

@HideIfNull
public java.util.HashMap<java.lang.String,java.lang.String> memory
The personal memory.


name

public java.lang.String name
The screenname.


owner

public Player owner
The owning Player.


tileIndex

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

Constructor Detail

Gbangoo

public Gbangoo()