com.threerings.micasa.simulator.client
Class SimpleClient.MiCasaContextImpl

java.lang.Object
  extended by com.threerings.micasa.simulator.client.SimpleClient.MiCasaContextImpl
All Implemented Interfaces:
CrowdContext, MiCasaContext, ParlorContext, PresentsContext
Enclosing class:
SimpleClient

protected class SimpleClient.MiCasaContextImpl
extends Object
implements MiCasaContext

The context implementation. This provides access to all of the objects and services that are needed by the operating client.


Constructor Summary
protected SimpleClient.MiCasaContextImpl()
           
 
Method Summary
 void clearPlaceView(PlaceView view)
           
 ChatDirector getChatDirector()
           
 Client getClient()
           
 Config getConfig()
           
 DObjectManager getDObjectManager()
           
 MiCasaFrame getFrame()
          Returns a reference to the primary user interface frame.
 LocationDirector getLocationDirector()
           
 MessageManager getMessageManager()
          Returns a reference to the message manager used by the client to generate localized messages.
 OccupantDirector getOccupantDirector()
           
 ParlorDirector getParlorDirector()
          Returns a reference to the parlor director.
 void setPlaceView(PlaceView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleClient.MiCasaContextImpl

protected SimpleClient.MiCasaContextImpl()
Method Detail

getConfig

public Config getConfig()
Specified by:
getConfig in interface PresentsContext

getClient

public Client getClient()
Specified by:
getClient in interface PresentsContext

getDObjectManager

public DObjectManager getDObjectManager()
Specified by:
getDObjectManager in interface PresentsContext

getLocationDirector

public LocationDirector getLocationDirector()
Specified by:
getLocationDirector in interface CrowdContext

getOccupantDirector

public OccupantDirector getOccupantDirector()
Specified by:
getOccupantDirector in interface CrowdContext

getParlorDirector

public ParlorDirector getParlorDirector()
Description copied from interface: ParlorContext
Returns a reference to the parlor director.

Specified by:
getParlorDirector in interface ParlorContext

getChatDirector

public ChatDirector getChatDirector()
Specified by:
getChatDirector in interface CrowdContext

getMessageManager

public MessageManager getMessageManager()
Description copied from interface: MiCasaContext
Returns a reference to the message manager used by the client to generate localized messages.

Specified by:
getMessageManager in interface CrowdContext
Specified by:
getMessageManager in interface MiCasaContext

setPlaceView

public void setPlaceView(PlaceView view)
Specified by:
setPlaceView in interface CrowdContext

clearPlaceView

public void clearPlaceView(PlaceView view)
Specified by:
clearPlaceView in interface CrowdContext

getFrame

public MiCasaFrame getFrame()
Description copied from interface: MiCasaContext
Returns a reference to the primary user interface frame. This can be used to set the top-level panel when we enter a game, etc.

Specified by:
getFrame in interface MiCasaContext