au.com.solidsoftware.multimahjong.mmc.game
Class RetrieveRobKong
java.lang.Object
|
+--au.com.solidsoftware.multimahjong.mmc.game.RetrieveRobKong
- public class RetrieveRobKong
- extends java.lang.Object
RetrieveRobKong synchronises the interaction between
Referee and the Game. When the selections
for robbing the Kong have been sent to the Referee the
result is sent to this class. The Game waits until notified
that the result has been placed.
- Author:
- Dean Cortinovis
|
Field Summary |
private boolean |
exit
Exit flag. |
private boolean |
resultAvail
Signals that a result has been made available. |
private int |
robbingPlayer
Player- if any, who is robbing the kong. |
|
Method Summary |
int |
getRobResult()
Returns the player robbing the Kong, if any. |
void |
initDetermineRob()
Class initialisation. |
void |
placeRobResult(int robbingPlayer,
boolean exit)
Places the location of the robbing player, if any. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
robbingPlayer
private int robbingPlayer
- Player- if any, who is robbing the kong.
resultAvail
private boolean resultAvail
- Signals that a result has been made available.
exit
private boolean exit
- Exit flag.
RetrieveRobKong
public RetrieveRobKong()
initDetermineRob
public void initDetermineRob()
- Class initialisation.
placeRobResult
public void placeRobResult(int robbingPlayer,
boolean exit)
- Places the location of the robbing player, if any.
- Parameters:
robbingPlayer - Player robbing the Kong (if any).exit - Exit flag.
getRobResult
public int getRobResult()
- Returns the player robbing the Kong, if any.
- Returns:
- Player robbing the Kong if any.