No longer pass the manager in the constructor. As many of these delegates are
in the wild, we'll deprecate the old constructors rather than remove them. Yay cruft! git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@487 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -64,14 +64,19 @@ public abstract class DropManagerDelegate extends PuzzleManagerDelegate
|
||||
implements PuzzleCodes, DropCodes
|
||||
{
|
||||
/**
|
||||
* Provides the delegate with a reference to the manager for which it
|
||||
* is delegating as well as the logic object that it uses to determine
|
||||
* how to manage the drop puzzle.
|
||||
* @deprecated use {@link #DropManagerDelegate(DropLogic)}.
|
||||
*/
|
||||
public DropManagerDelegate (PuzzleManager puzmgr, DropLogic logic)
|
||||
@Deprecated public DropManagerDelegate (PuzzleManager puzmgr, DropLogic logic)
|
||||
{
|
||||
super(puzmgr);
|
||||
this(logic);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a drop manager delegate with a logic that it uses to determine how to manage the
|
||||
* drop puzzle.
|
||||
*/
|
||||
public DropManagerDelegate (DropLogic logic)
|
||||
{
|
||||
// configure the game-specific settings
|
||||
_usedrop = logic.useBlockDropping();
|
||||
_userise = logic.useBoardRising();
|
||||
|
||||
@@ -21,21 +21,31 @@
|
||||
|
||||
package com.threerings.puzzle.server;
|
||||
|
||||
import com.threerings.crowd.server.PlaceManager;
|
||||
import com.threerings.parlor.game.server.GameManagerDelegate;
|
||||
|
||||
/**
|
||||
* Extends the {@link GameManagerDelegate} mechanism with puzzle manager
|
||||
* specific methods (of which there are currently none).
|
||||
* Extends the {@link GameManagerDelegate} mechanism with puzzle manager specific methods (of which
|
||||
* there are currently none).
|
||||
*/
|
||||
public class PuzzleManagerDelegate extends GameManagerDelegate
|
||||
{
|
||||
/**
|
||||
* Constructs a puzzle manager delegate.
|
||||
*/
|
||||
public PuzzleManagerDelegate (PuzzleManager puzmgr)
|
||||
public PuzzleManagerDelegate ()
|
||||
{
|
||||
super(puzmgr);
|
||||
_puzmgr = puzmgr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use the zero-argument constructor.
|
||||
*/
|
||||
@Deprecated public PuzzleManagerDelegate (PuzzleManager puzmgr)
|
||||
{
|
||||
}
|
||||
|
||||
@Override // from PlaceManagerDelegate
|
||||
public void setPlaceManager (PlaceManager plmgr)
|
||||
{
|
||||
super.setPlaceManager(plmgr);
|
||||
_puzmgr = (PuzzleManager)plmgr;
|
||||
}
|
||||
|
||||
protected PuzzleManager _puzmgr;
|
||||
|
||||
Reference in New Issue
Block a user