cz.nipax.hippo.pexeso
Class Playground.Piece

java.lang.Object
  extended by cz.nipax.hippo.pexeso.Playground.Piece
Enclosing class:
Playground

 class Playground.Piece
extends java.lang.Object

Info about one piece in game.


Field Summary
(package private)  boolean dirty
          If something changed.
(package private)  boolean revealed
          true if the picture is currently visible
(package private)  int type
          id of piece.
(package private)  boolean valid
          false == not valid piece - allready took it
 
Constructor Summary
Playground.Piece(int ID)
          Simple constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

int type
id of piece. Should not be negative for valid piece.


revealed

boolean revealed
true if the picture is currently visible


valid

boolean valid
false == not valid piece - allready took it


dirty

boolean dirty
If something changed. To save drawing time by performing incremental painting.

Constructor Detail

Playground.Piece

Playground.Piece(int ID)
Simple constructor.

Parameters:
ID - sets type. if == -1, then this piece will be invalid