com.threerings.micasa.client
Class MiCasaClient.MiCasaContextImpl

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

protected class MiCasaClient.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 MiCasaClient.MiCasaContextImpl()
          Apparently the default constructor has default access, rather than protected access, even though this class is declared to be protected.
 
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

MiCasaClient.MiCasaContextImpl

protected MiCasaClient.MiCasaContextImpl()
Apparently the default constructor has default access, rather than protected access, even though this class is declared to be protected. Why, I don't know, but we need to be able to extend this class elsewhere, so we need this.

Method Detail

getClient

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

getDObjectManager

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

getConfig

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

getLocationDirector

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

getOccupantDirector

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

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

getParlorDirector

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

Specified by:
getParlorDirector in interface ParlorContext

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