com.threerings.puzzle.client
Class PuzzleControllerDelegate
java.lang.Object
com.threerings.crowd.client.PlaceControllerDelegate
com.threerings.parlor.game.client.GameControllerDelegate
com.threerings.puzzle.client.PuzzleControllerDelegate
- All Implemented Interfaces:
- com.threerings.presents.data.InvocationCodes, PuzzleCodes, PuzzleGameCodes
- Direct Known Subclasses:
- DropControllerDelegate
public class PuzzleControllerDelegate
- extends GameControllerDelegate
- implements PuzzleCodes, PuzzleGameCodes
A base class for puzzle controller delegates. Provides access to some delegated puzzle
controller methods (startAction(), clearAction(), etc.) and provides a casted
reference to the puzzle object.
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
|
Method Summary |
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)
|
| Methods inherited from class com.threerings.crowd.client.PlaceControllerDelegate |
handleAction, init, mayLeavePlace |
PuzzleControllerDelegate
public PuzzleControllerDelegate(PuzzleController ctrl)
- Constructs a puzzle controller delegate.
willEnterPlace
public void willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
- Overrides:
willEnterPlace in class com.threerings.crowd.client.PlaceControllerDelegate
didLeavePlace
public void didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
- Overrides:
didLeavePlace in class com.threerings.crowd.client.PlaceControllerDelegate
playerKnockedOut
public void playerKnockedOut(int pidx)
- Called when a player is knocked out of the game.
setChatting
public void setChatting(boolean chatting)
- Called when the user toggles chatting mode.
setBoard
public void setBoard(Board board)
- Called when the puzzle controller sets up a new board for the player.
- Parameters:
board - the newly initialized and ready-to-go board.
Copyright © 2011. All Rights Reserved.