com.threerings.toybox.client
Class ToyBoxClient.ToyBoxContextImpl

java.lang.Object
  extended by com.threerings.toybox.util.ToyBoxContext
      extended by com.threerings.toybox.client.ToyBoxClient.ToyBoxContextImpl
All Implemented Interfaces:
CrowdContext, ParlorContext, PresentsContext, com.whirled.game.util.WhirledGameContext
Enclosing class:
ToyBoxClient

protected class ToyBoxClient.ToyBoxContextImpl
extends ToyBoxContext

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


Constructor Summary
protected ToyBoxClient.ToyBoxContextImpl()
          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()
           
 FrameManager getFrameManager()
          Returns a reference to our frame manager (used for media services).
 KeyDispatcher getKeyDispatcher()
          Returns a reference to our key dispatcher.
 LocationDirector getLocationDirector()
           
 MessageManager getMessageManager()
          Returns a reference to the message manager used by the client to generate localized messages.
 OccupantDirector getOccupantDirector()
           
 ParlorDirector getParlorDirector()
           
 ToyBoxDirector getToyBoxDirector()
          Returns a reference to our ToyBox director.
 void setPlaceView(PlaceView view)
           
 
Methods inherited from class com.threerings.toybox.util.ToyBoxContext
getResourceManager, getUsername, loadImage, xlate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToyBoxClient.ToyBoxContextImpl

protected ToyBoxClient.ToyBoxContextImpl()
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()

getDObjectManager

public DObjectManager getDObjectManager()

getConfig

public Config getConfig()

getLocationDirector

public LocationDirector getLocationDirector()

getOccupantDirector

public OccupantDirector getOccupantDirector()

getChatDirector

public ChatDirector getChatDirector()

getMessageManager

public MessageManager getMessageManager()
Description copied from class: ToyBoxContext
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 com.whirled.game.util.WhirledGameContext
Specified by:
getMessageManager in class ToyBoxContext

getParlorDirector

public ParlorDirector getParlorDirector()

setPlaceView

public void setPlaceView(PlaceView view)

clearPlaceView

public void clearPlaceView(PlaceView view)

getToyBoxDirector

public ToyBoxDirector getToyBoxDirector()
Description copied from class: ToyBoxContext
Returns a reference to our ToyBox director.

Specified by:
getToyBoxDirector in class ToyBoxContext

getFrameManager

public FrameManager getFrameManager()
Description copied from class: ToyBoxContext
Returns a reference to our frame manager (used for media services).

Specified by:
getFrameManager in class ToyBoxContext

getKeyDispatcher

public KeyDispatcher getKeyDispatcher()
Description copied from class: ToyBoxContext
Returns a reference to our key dispatcher.

Specified by:
getKeyDispatcher in class ToyBoxContext