public abstract class DropManagerDelegate extends PuzzleManagerDelegate implements PuzzleCodes, DropCodes
A puzzle game using these services will then need to extend this delegate, implementing the
necessary methods to customize it for the particulars of their game and then register it with
their game manager via PlaceManager.addDelegate(com.threerings.crowd.server.PlaceManagerDelegate).
It also keeps track of, for each player, board level information, and player game status. Miscellaneous utility routines are provided for checking things like whether the game is over, whether a player is still active in the game, and so forth.
Derived classes are likely to want to override getPieceDropLogic().
DEBUG_PUZZLE, DEFAULT_DIFFICULTY, PUZZLE_MESSAGE_BUNDLEACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERRORDROP_MESSAGE_BUNDLE, DROP_STREAM, RISE_STREAM| Constructor and Description |
|---|
DropManagerDelegate(DropLogic logic)
Creates a drop manager delegate with a logic that it uses to determine how to manage the
drop puzzle.
|
DropManagerDelegate(PuzzleManager puzmgr,
DropLogic logic)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
didInit(com.threerings.crowd.data.PlaceConfig config) |
void |
didStartup(com.threerings.crowd.data.PlaceObject plobj) |
void |
gameWillStart()
Called by the game manager when the game is about to start.
|
gameDidEnd, gameDidStart, gameWillEnd, gameWillReset, playerWasReplaced, setAI, tickAI@Deprecated public DropManagerDelegate(PuzzleManager puzmgr, DropLogic logic)
DropManagerDelegate(DropLogic).public DropManagerDelegate(DropLogic logic)
public void didInit(com.threerings.crowd.data.PlaceConfig config)
didInit in class PuzzleManagerDelegatepublic void didStartup(com.threerings.crowd.data.PlaceObject plobj)
didStartup in class com.threerings.crowd.server.PlaceManagerDelegatepublic void gameWillStart()
GameManagerDelegategameWillStart in class GameManagerDelegateCopyright © 2015. All rights reserved.