|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Player | |
bluegammon.logic | The bluegammon.logic package contains logic aspects of the backgammon game. |
Uses of Player in bluegammon.logic |
Subclasses of Player in bluegammon.logic | |
class |
LocalPlayer
A local player has access to the actual device. |
class |
RemotePlayer
Represents a player that is on the other side of a connection; a remote player does not have access to this device. |
Methods in bluegammon.logic that return Player | |
Player |
BoardState.getCurrentPlayer()
Returns current player. |
Player |
BoardState.getWaitingPlayer()
Returns waiting player. |
static Player |
BoardMediator.getCurrentPlayer()
Returns the player whos holding the turn, i.e. can make moves. |
static Player |
BoardMediator.getOpponentPlayer()
Returns opponent player. |
Methods in bluegammon.logic with parameters of type Player | |
static void |
GameRecord.saveGame(Player opponent,
byte[] savedGame)
Saves the state of an ongoing game against specified opponents. |
static GameRecord |
GameRecord.getRecord(Player opponent)
Returns record for a specific opponent. |
static void |
GameRecord.updateGameResult(Player opponent,
boolean localWinner,
int score)
Updates the game results with a new game. |
void |
BoardState.setPlayers(Player player1,
Player player2)
Defines the two backgammon players. |
static void |
BoardMediator.init(Player p1,
Player p2,
boolean resumed)
Initiates a new or resumed game with specified players. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |