org.moyoman.client.reference
Class PrisonerCounter

java.lang.Object
  |
  +--org.moyoman.client.reference.PrisonerCounter

public class PrisonerCounter
extends Object

Provides a counter for white and black prisoners.

Since:
v0.01
Version:
v0.03
Author:
Jeffrey M. Thompson

Field Summary
private  int _blackPrisonerCount
          Black prisoner count.
private  int _whitePrisonerCount
          White prisoner count.
 
Constructor Summary
PrisonerCounter()
           
 
Method Summary
 void clear()
          Clear the counts.
 String toString()
          Return the display string.
 void updatePrisonerCount(Stone[] prisoners)
          Update the prisoner count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_blackPrisonerCount

private int _blackPrisonerCount
Black prisoner count.


_whitePrisonerCount

private int _whitePrisonerCount
White prisoner count.

Constructor Detail

PrisonerCounter

public PrisonerCounter()
Method Detail

clear

public void clear()
Clear the counts.

Since:
v0.01

toString

public String toString()
Return the display string.

Overrides:
toString in class Object
Since:
v0.01

updatePrisonerCount

public void updatePrisonerCount(Stone[] prisoners)
Update the prisoner count.

Since:
v0.01