public class PuzzleControllerDelegate extends GameControllerDelegate implements PuzzleCodes, PuzzleGameCodes
startAction(), clearAction(), etc.) and provides a casted
reference to the puzzle object.DEBUG_PUZZLE, DEFAULT_DIFFICULTY, PUZZLE_MESSAGE_BUNDLE| Constructor and Description |
|---|
PuzzleControllerDelegate(PuzzleController ctrl)
Constructs a puzzle controller delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
didLeavePlace(com.threerings.crowd.data.PlaceObject plobj) |
void |
playerKnockedOut(int pidx)
Called when a player is knocked out of the game.
|
void |
setBoard(Board board)
Called when the puzzle controller sets up a new board for the player.
|
void |
setChatting(boolean chatting)
Called when the user toggles chatting mode.
|
void |
willEnterPlace(com.threerings.crowd.data.PlaceObject plobj) |
gameDidEnd, gameDidStart, gameWasCancelled, gameWillResetpublic PuzzleControllerDelegate(PuzzleController ctrl)
public void willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
willEnterPlace in class com.threerings.crowd.client.PlaceControllerDelegatepublic void didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
didLeavePlace in class com.threerings.crowd.client.PlaceControllerDelegatepublic void playerKnockedOut(int pidx)
public void setChatting(boolean chatting)
public void setBoard(Board board)
board - the newly initialized and ready-to-go board.Copyright © 2015. All rights reserved.