us.the.mac.board
Class Board.Player

java.lang.Object
  extended by us.the.mac.board.Board.Player
Enclosing class:
Board

protected final class Board.Player
extends Object

The player class is used to allow a piece to be selected of a specific color. The player also keeps up with its own time, which for both players is accessible through the TimerCallback.onTimerUpdate.


Constructor Summary
Board.Player(String user, Board.Color c)
           
 
Method Summary
 int getConnectionType()
           
 Board.Color getUserColor()
           
 int getUserTime()
           
 void setConnectionType(int mConnectionType)
           
 void setUserTime(int mUserTime)
           
 boolean timeIsNotExpired()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Board.Player

public Board.Player(String user,
                    Board.Color c)
Method Detail

timeIsNotExpired

public boolean timeIsNotExpired()

toString

public String toString()
Overrides:
toString in class Object

getUserTime

public int getUserTime()
Returns:
the mUserTime

getConnectionType

public int getConnectionType()
Returns:
the mConnectionType

getUserColor

public Board.Color getUserColor()
Returns:
the mUserColor

setUserTime

public void setUserTime(int mUserTime)
Parameters:
mUserTime - the user time to set

setConnectionType

public void setConnectionType(int mConnectionType)
Parameters:
mConnectionType - the connection type to set