//
// $Id: SimpleServer.java,v 1.1 2002/02/05 22:12:42 mdb Exp $

package com.threerings.micasa.simulator.server;

import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.server.CrowdServer;

/**
 * A simple simulator server implementation that extends the crowd server
 * and provides no special functionality.
 */
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.
     */
    public void fakeBodyMapping (String username, BodyObject bodobj)
    {
        _bodymap.put(username, bodobj);
    }
}

@@ -26,17 +26,17 @@
 ava,v 1.
-1
+2
  2002/02
@@ -46,13 +46,13 @@
  22:
-12:42
+57:10
  mdb
@@ -414,463 +414,310 @@
    /
-**%0A     * Called by the simulator manager to map a username to a particular%0A     * body object. This should only be called from the dobjmgr thread.
+/ documentation inherited%0A    public void init ()%0A        throws Exception
 %0A    
- *
+%7B
 %0A     
-* %3Cp%3E This is copied from %7B@link CrowdServer#mapBody%7D as that%0A     * implementation is protected and cannot be referenced by classes in%0A     * the simulator package, but we know what we're doing and so we%0A     * knowingly expose this functionality to other classes in our%0A     * package.%0A     */
+   super.init();%0A%0A        // create the simulator manager%0A        SimulatorManager simmgr = new SimulatorManager();%0A        simmgr.init(config, invmgr, plreg, clmgr, omgr, this);%0A    %7D%0A%0A    // documentation inherited
 %0A   

Set up our SimulatorManager on init().