com.threerings.micasa.lobby
Class LobbyController
java.lang.Object
com.samskivert.swing.Controller
com.threerings.crowd.client.PlaceController
com.threerings.micasa.lobby.LobbyController
- All Implemented Interfaces:
- InvitationHandler, InvitationResponseObserver, ActionListener, EventListener
public class LobbyController
- extends PlaceController
- implements InvitationHandler, InvitationResponseObserver
| Methods inherited from class com.samskivert.swing.Controller |
actionPerformed, configureAction, createActionButton, generateArguments, handleAction, handleAction, handleAction, postAction, postAction, postAction, setControlledPanel, wasAdded, wasRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_ctx
protected MiCasaContext _ctx
_config
protected LobbyConfig _config
LobbyController
public LobbyController()
init
public void init(CrowdContext ctx,
PlaceConfig config)
- Overrides:
init in class PlaceController
createPlaceView
protected PlaceView createPlaceView(CrowdContext ctx)
- Overrides:
createPlaceView in class PlaceController
willEnterPlace
public void willEnterPlace(PlaceObject plobj)
- Overrides:
willEnterPlace in class PlaceController
invitationReceived
public void invitationReceived(Invitation invite)
- Description copied from interface:
InvitationHandler
- Called when an invitation is received from another player.
- Specified by:
invitationReceived in interface InvitationHandler
- Parameters:
invite - the received invitation.
invitationCancelled
public void invitationCancelled(Invitation invite)
- Description copied from interface:
InvitationHandler
- Called when an invitation is cancelled by the inviting player.
- Specified by:
invitationCancelled in interface InvitationHandler
- Parameters:
invite - the cancelled invitation.
invitationAccepted
public void invitationAccepted(Invitation invite)
- Description copied from interface:
InvitationResponseObserver
- Called if the invitation was accepted.
- Specified by:
invitationAccepted in interface InvitationResponseObserver
- Parameters:
invite - the invitation for which we received a response.
invitationRefused
public void invitationRefused(Invitation invite,
String message)
- Description copied from interface:
InvitationResponseObserver
- Called if the invitation was refused.
- Specified by:
invitationRefused in interface InvitationResponseObserver
- Parameters:
invite - the invitation for which we received a response.message - a message provided by the invited user explaining
the reason for their refusal, or the empty string if no message was
provided.
invitationCountered
public void invitationCountered(Invitation invite,
GameConfig config)
- Description copied from interface:
InvitationResponseObserver
- Called if the invitation was countered with an alternate game
configuration.
- Specified by:
invitationCountered in interface InvitationResponseObserver
- Parameters:
invite - the invitation for which we received a response.config - the game configuration proposed by the invited
player.