us.the.mac.board
Class Board.Player
java.lang.Object
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.
Board.Player
public Board.Player(String user,
Board.Color c)
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