Class Piece

java.lang.Object
edu.wisc.game.sql.Piece
All Implemented Interfaces:
Serializable

@Entity
public class Piece
extends Object
implements Serializable
Represents a piece of a specified type at a specified location. Used in board description.
 "boardObjectsArrays":{
     "Cvu0lwRnl":{
     "id":"Cvu0lwRnl",
     "value":
     [{"color":"yellow","shape":"square","id":"1","x":1,"y":1},
     {"color":"black","shape":"square","id":"6","x":6,"y":1},
     {"color":"red","shape":"square","id":"31","x":1,"y":6},
     {"color":"blue","shape":"square","id":"36","x":6,"y":6}],
     "name":"Four squares in corners"}
     }
}
See Also:
Serialized Form