|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
soc.client.SOCBoardPanel.BoardPanelSendBuildTask
protected class SOCBoardPanel.BoardPanelSendBuildTask
Used for the delay between sending a build-request message, and receiving a game-state message. This timer will probably not be called, unless there's a large lag between the server and client. It's here just in case. Ideally the server responds right away, and the client responds to that.
SOCHandPanel.autoRollSetupTimer()
Field Summary | |
---|---|
protected int |
buildLoc
|
protected int |
pieceType
|
protected boolean |
wasSentAlready
|
Constructor Summary | |
---|---|
protected |
SOCBoardPanel.BoardPanelSendBuildTask(int coord,
int ptype)
Send this after maximum delay. |
Method Summary | |
---|---|
void |
doNotSend()
|
int |
getBuildLoc()
Board coordinates, as used in SOCPutPiece message |
int |
getPieceType()
Piece type, as used in SOCPlayingPiece / SOCPutPiece |
void |
run()
This timer will probably not be called, unless there's a large lag between the server and client. |
void |
sendOnceFromClientIfCurrentPlayer()
Internally synchronized around setSentAlready/wasItSentAlready. |
boolean |
wasItSentAlready()
|
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int buildLoc
protected int pieceType
protected boolean wasSentAlready
Constructor Detail |
---|
protected SOCBoardPanel.BoardPanelSendBuildTask(int coord, int ptype)
coord
- Board coordinates, as used in SOCPutPiece message. Does not accept -1 for road edge 0x00.ptype
- Piece type, as used in SOCPlayingPiece / SOCPutPieceMethod Detail |
---|
public int getBuildLoc()
public int getPieceType()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void doNotSend()
public boolean wasItSentAlready()
public void sendOnceFromClientIfCurrentPlayer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |