net.sourceforge.simplegamenet.chess
Class ChessPlayerClient
java.lang.Object
net.sourceforge.simplegamenet.specs.GamePlayerClient
net.sourceforge.simplegamenet.chess.ChessPlayerClient
- All Implemented Interfaces:
- ChessPacketCodes, ChessPlayFieldState
- public class ChessPlayerClient
- extends net.sourceforge.simplegamenet.specs.GamePlayerClient
- implements ChessPacketCodes, ChessPlayFieldState
Fields inherited from class net.sourceforge.simplegamenet.specs.GamePlayerClient |
clientEngine |
Fields inherited from interface net.sourceforge.simplegamenet.chess.ChessPacketCodes |
ACCEPT_REMISE, DECLINE_REMISE, E_MAKE_MOVE, E_OFFER_REMISE, MAKE_MOVE, MAKE_YIELD, MOVE_MADE, OFFER_REMISE, PARTICIPANTS_ORDER, PLAY_FIELD, REMISE_ACCEPTED, REMISE_DECLINED, REMISE_OFFERED, YIELD_MADE |
Constructor Summary |
ChessPlayerClient(net.sourceforge.simplegamenet.specs.ClientEngine clientEngine)
|
Method Summary |
net.sourceforge.simplegamenet.specs.GamePanel |
createGamePanel(net.sourceforge.simplegamenet.specs.UtilityPanelFactory utilityPanelFactory)
|
void |
gameAborted()
|
boolean[][] |
getMoveDestinationAllowedGrid(int sourceX,
int sourceY)
|
boolean[][] |
getMoveSourceAllowedGrid()
|
boolean |
isOfferRemiseAllowed()
|
boolean |
isReplaceChoiceNeeded(int sourceX,
int sourceY,
int destinationX,
int destinationY)
|
void |
makeMove(int sourceX,
int sourceY,
int destinationX,
int destinationY)
|
void |
makeMove(int sourceX,
int sourceY,
int destinationX,
int destinationY,
int chosenPieceType)
|
void |
offerRemise()
|
void |
playerRemoved(net.sourceforge.simplegamenet.specs.PlayerSettings playerSettings)
|
void |
receiveData(Serializable data)
|
void |
yieldGame()
|
Methods inherited from class net.sourceforge.simplegamenet.specs.GamePlayerClient |
close, gameSettingsUpdated, gameStarted, gameStopped, playerAdded, playerSettingsUpdated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChessPlayerClient
public ChessPlayerClient(net.sourceforge.simplegamenet.specs.ClientEngine clientEngine)
createGamePanel
public net.sourceforge.simplegamenet.specs.GamePanel createGamePanel(net.sourceforge.simplegamenet.specs.UtilityPanelFactory utilityPanelFactory)
playerRemoved
public void playerRemoved(net.sourceforge.simplegamenet.specs.PlayerSettings playerSettings)
receiveData
public void receiveData(Serializable data)
gameAborted
public void gameAborted()
makeMove
public void makeMove(int sourceX,
int sourceY,
int destinationX,
int destinationY)
makeMove
public void makeMove(int sourceX,
int sourceY,
int destinationX,
int destinationY,
int chosenPieceType)
isOfferRemiseAllowed
public boolean isOfferRemiseAllowed()
offerRemise
public void offerRemise()
yieldGame
public void yieldGame()
getMoveSourceAllowedGrid
public boolean[][] getMoveSourceAllowedGrid()
getMoveDestinationAllowedGrid
public boolean[][] getMoveDestinationAllowedGrid(int sourceX,
int sourceY)
isReplaceChoiceNeeded
public boolean isReplaceChoiceNeeded(int sourceX,
int sourceY,
int destinationX,
int destinationY)
Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.