com.threerings.micasa.simulator.client
Class SimulatorController

java.lang.Object
  extended by com.samskivert.swing.Controller
      extended by com.threerings.micasa.simulator.client.SimulatorController
All Implemented Interfaces:
com.threerings.presents.client.SessionObserver, ActionListener, EventListener

public class SimulatorController
extends Controller
implements com.threerings.presents.client.SessionObserver

Responsible for top-level control of the simulator client user interface.


Field Summary
static String LOGOFF
          Command constant used to logoff the client.
 
Fields inherited from class com.samskivert.swing.Controller
DISPATCHER
 
Constructor Summary
SimulatorController(ParlorContext ctx, SimulatorFrame frame, SimulatorInfo info)
          Creates a new simulator controller.
 
Method Summary
 void clientDidLogoff(com.threerings.presents.client.Client client)
           
 void clientDidLogon(com.threerings.presents.client.Client client)
           
 void clientObjectDidChange(com.threerings.presents.client.Client client)
           
 void clientWillLogon(com.threerings.presents.client.Client client)
           
 void createGame(com.threerings.presents.client.Client client)
           
 boolean handleAction(ActionEvent action)
           
 
Methods inherited from class com.samskivert.swing.Controller
actionPerformed, configureAction, createActionButton, handleAction, handleAction, handleAction, postAction, postAction, postAction, setControlledPanel, wasAdded, wasRemoved
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGOFF

public static final String LOGOFF
Command constant used to logoff the client.

See Also:
Constant Field Values
Constructor Detail

SimulatorController

public SimulatorController(ParlorContext ctx,
                           SimulatorFrame frame,
                           SimulatorInfo info)
Creates a new simulator controller. The controller will set everything up in preparation for logging on.

Method Detail

handleAction

public boolean handleAction(ActionEvent action)
Overrides:
handleAction in class Controller

clientWillLogon

public void clientWillLogon(com.threerings.presents.client.Client client)
Specified by:
clientWillLogon in interface com.threerings.presents.client.SessionObserver

clientDidLogon

public void clientDidLogon(com.threerings.presents.client.Client client)
Specified by:
clientDidLogon in interface com.threerings.presents.client.SessionObserver

createGame

public void createGame(com.threerings.presents.client.Client client)

clientObjectDidChange

public void clientObjectDidChange(com.threerings.presents.client.Client client)
Specified by:
clientObjectDidChange in interface com.threerings.presents.client.SessionObserver

clientDidLogoff

public void clientDidLogoff(com.threerings.presents.client.Client client)
Specified by:
clientDidLogoff in interface com.threerings.presents.client.SessionObserver


Copyright © 2011. All Rights Reserved.