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:
SessionObserver, ActionListener, EventListener

public class SimulatorController
extends Controller
implements SessionObserver

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.samskivert.swing.Controller
Controller.ActionInvoker
 
Field Summary
protected  BodyObject _body
           
protected  ParlorContext _ctx
           
protected  SimulatorFrame _frame
           
protected  SimulatorInfo _info
           
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(Client client)
           
 void clientDidLogon(Client client)
           
 void clientObjectDidChange(Client client)
           
 void clientWillLogon(Client client)
           
 void createGame(Client client)
           
 boolean handleAction(ActionEvent action)
           
 
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
 

Field Detail

LOGOFF

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

See Also:
Constant Field Values

_ctx

protected ParlorContext _ctx

_frame

protected SimulatorFrame _frame

_info

protected SimulatorInfo _info

_body

protected BodyObject _body
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(Client client)
Specified by:
clientWillLogon in interface SessionObserver

clientDidLogon

public void clientDidLogon(Client client)
Specified by:
clientDidLogon in interface SessionObserver

createGame

public void createGame(Client client)

clientObjectDidChange

public void clientObjectDidChange(Client client)
Specified by:
clientObjectDidChange in interface SessionObserver

clientDidLogoff

public void clientDidLogoff(Client client)
Specified by:
clientDidLogoff in interface SessionObserver