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; package com.threerings.micasa.simulator.server;
@@ -13,16 +13,18 @@ import com.threerings.crowd.server.CrowdServer;
public class SimpleServer extends CrowdServer public class SimpleServer extends CrowdServer
implements SimulatorServer implements SimulatorServer
{ {
/** // documentation inherited
* Called by the simulator manager to map a username to a particular public void init ()
* body object. This should only be called from the dobjmgr thread. throws Exception
* {
* <p> This is copied from {@link CrowdServer#mapBody} as that super.init();
* implementation is protected and cannot be referenced by classes in
* the simulator package, but we know what we're doing and so we // create the simulator manager
* knowingly expose this functionality to other classes in our SimulatorManager simmgr = new SimulatorManager();
* package. simmgr.init(config, invmgr, plreg, clmgr, omgr, this);
*/ }
// documentation inherited
public void fakeBodyMapping (String username, BodyObject bodobj) public void fakeBodyMapping (String username, BodyObject bodobj)
{ {
_bodymap.put(username, bodobj); _bodymap.put(username, bodobj);