Set up our SimulatorManager on init().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@940 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-05 22:57:10 +00:00
parent 84891c9b91
commit bf049dc1c7
@@ -1,5 +1,5 @@
//
// $Id: SimpleServer.java,v 1.1 2002/02/05 22:12:42 mdb Exp $
// $Id: SimpleServer.java,v 1.2 2002/02/05 22:57:10 mdb Exp $
package com.threerings.micasa.simulator.server;
@@ -13,16 +13,18 @@ import com.threerings.crowd.server.CrowdServer;
public class SimpleServer extends CrowdServer
implements SimulatorServer
{
/**
* Called by the simulator manager to map a username to a particular
* body object. This should only be called from the dobjmgr thread.
*
* <p> This is copied from {@link CrowdServer#mapBody} as that
* implementation is protected and cannot be referenced by classes in
* the simulator package, but we know what we're doing and so we
* knowingly expose this functionality to other classes in our
* package.
*/
// documentation inherited
public void init ()
throws Exception
{
super.init();
// create the simulator manager
SimulatorManager simmgr = new SimulatorManager();
simmgr.init(config, invmgr, plreg, clmgr, omgr, this);
}
// documentation inherited
public void fakeBodyMapping (String username, BodyObject bodobj)
{
_bodymap.put(username, bodobj);