Changes suggested by Mike.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3225 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -33,21 +33,15 @@ import com.threerings.parlor.game.GameController;
|
||||
* accepting dealt hands.
|
||||
*/
|
||||
public abstract class CardGameController extends GameController
|
||||
implements CardCodes
|
||||
implements CardCodes, CardReceiver
|
||||
{
|
||||
// Documentation inherited.
|
||||
public void willEnterPlace (PlaceObject plobj)
|
||||
{
|
||||
super.willEnterPlace(plobj);
|
||||
|
||||
CardReceiver cgr = new CardReceiver() {
|
||||
public void receivedHand (Hand hand) {
|
||||
handDealt(hand);
|
||||
}
|
||||
};
|
||||
|
||||
_ctx.getClient().getInvocationDirector().registerReceiver(
|
||||
new CardDecoder(cgr));
|
||||
new CardDecoder(this));
|
||||
}
|
||||
|
||||
// Documentation inherited.
|
||||
@@ -60,10 +54,11 @@ public abstract class CardGameController extends GameController
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the server deals the client a new hand of cards.
|
||||
* Called when the server deals the client a new hand of cards. Default
|
||||
* implementation does nothing.
|
||||
*
|
||||
* @param hand the hand dealt to the user
|
||||
*/
|
||||
protected void handDealt (Hand hand)
|
||||
public void receivedHand (Hand hand)
|
||||
{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user