org.gbanga.api
Class Gube

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

public class Gube
extends java.lang.Object

A Gube is a brick with a color that has been pulled out from a Tile by a jumping Gbangoo.

Details about JSON serialization

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

 {
   color: 255,
   creationtime: 1142982000000
 }
 

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
 int color
          The color in decimal format where the hexadecimal representation is rrggbb.
 long creationTime
          The timestamp of creation.
 Player creator
          The creating Player.
 
Constructor Summary
Gube()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

@PrimaryKey
public int color
The color in decimal format where the hexadecimal representation is rrggbb.


creationTime

public long creationTime
The timestamp of creation.


creator

@HideIfNull
public Player creator
The creating Player.

Constructor Detail

Gube

public Gube()