public class TurnGameControllerDelegate extends GameControllerDelegate implements com.threerings.presents.dobj.AttributeChangeListener
TurnGameController interface so that it can be
notified when turn-based game events take place.| Constructor and Description |
|---|
TurnGameControllerDelegate(TurnGameController tgctrl)
Constructs a delegate which will call back to the supplied
TurnGameController implementation wen turn-based game related
things happen. |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeChanged(com.threerings.presents.dobj.AttributeChangedEvent event) |
void |
didLeavePlace(com.threerings.crowd.data.PlaceObject plobj) |
int |
getTurnHolderIndex()
Returns the index of the current turn holder as configured in the
game object.
|
void |
init(com.threerings.crowd.util.CrowdContext ctx,
com.threerings.crowd.data.PlaceConfig config) |
boolean |
isOurTurn()
Returns true if the game is in progress and it is our turn; false
otherwise.
|
void |
willEnterPlace(com.threerings.crowd.data.PlaceObject plobj) |
gameDidEnd, gameDidStart, gameWasCancelled, gameWillResetpublic TurnGameControllerDelegate(TurnGameController tgctrl)
TurnGameController implementation wen turn-based game related
things happen.public boolean isOurTurn()
public int getTurnHolderIndex()
public void init(com.threerings.crowd.util.CrowdContext ctx,
com.threerings.crowd.data.PlaceConfig config)
init in class com.threerings.crowd.client.PlaceControllerDelegatepublic 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 attributeChanged(com.threerings.presents.dobj.AttributeChangedEvent event)
attributeChanged in interface com.threerings.presents.dobj.AttributeChangeListenerCopyright © 2015. All rights reserved.