cz.nipax.hippo.pexeso
Class Playground.Player

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

 class Playground.Player
extends java.lang.Object

Info about one player.


Field Summary
(package private)  AI ai
          AI of player
(package private)  int rev
          How many pictures the player reverted.
(package private)  Playground.Piece[] revs
          revealed pieces - max 2
(package private)  int score
          Number of found pairs.
 
Constructor Summary
Playground.Player()
          Simple constructor
 
Method Summary
(package private)  void reset(AI newai)
          New game inicialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

score

int score
Number of found pairs.


ai

AI ai
AI of player


rev

int rev
How many pictures the player reverted. Possible values 0 1 2 - resets after each turn


revs

Playground.Piece[] revs
revealed pieces - max 2

Constructor Detail

Playground.Player

Playground.Player()
Simple constructor

Method Detail

reset

void reset(AI newai)
New game inicialization.

Parameters:
newai - current AI