Provide a config instance.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2865 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-11-24 17:51:56 +00:00
parent 30190bfd85
commit cb9ed7030d
2 changed files with 16 additions and 2 deletions
@@ -1,5 +1,5 @@
// //
// $Id: MiCasaClient.java,v 1.16 2002/11/08 09:31:59 mdb Exp $ // $Id: MiCasaClient.java,v 1.17 2003/11/24 17:51:56 mdb Exp $
package com.threerings.micasa.client; package com.threerings.micasa.client;
@@ -9,6 +9,7 @@ import java.io.IOException;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import com.samskivert.util.Config;
import com.threerings.util.MessageManager; import com.threerings.util.MessageManager;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
@@ -140,6 +141,11 @@ public class MiCasaClient
return _client.getDObjectManager(); return _client.getDObjectManager();
} }
public Config getConfig ()
{
return _config;
}
public LocationDirector getLocationDirector () public LocationDirector getLocationDirector ()
{ {
return _locdir; return _locdir;
@@ -179,6 +185,7 @@ public class MiCasaClient
protected MiCasaContext _ctx; protected MiCasaContext _ctx;
protected MiCasaFrame _frame; protected MiCasaFrame _frame;
protected Config _config = new Config("micasa");
protected Client _client; protected Client _client;
protected LocationDirector _locdir; protected LocationDirector _locdir;
@@ -1,5 +1,5 @@
// //
// $Id: SimpleClient.java,v 1.8 2002/11/08 09:31:59 mdb Exp $ // $Id: SimpleClient.java,v 1.9 2003/11/24 17:51:56 mdb Exp $
package com.threerings.micasa.simulator.client; package com.threerings.micasa.simulator.client;
@@ -11,6 +11,7 @@ import java.io.IOException;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import com.samskivert.util.Config;
import com.threerings.util.MessageManager; import com.threerings.util.MessageManager;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
@@ -82,6 +83,11 @@ public class SimpleClient
*/ */
protected class MiCasaContextImpl implements MiCasaContext protected class MiCasaContextImpl implements MiCasaContext
{ {
public Config getConfig ()
{
return _config;
}
public Client getClient () public Client getClient ()
{ {
return _client; return _client;
@@ -133,6 +139,7 @@ public class SimpleClient
protected SimulatorFrame _frame; protected SimulatorFrame _frame;
protected MessageManager _msgmgr; protected MessageManager _msgmgr;
protected Config _config = new Config("micasa");
protected Client _client; protected Client _client;
protected LocationDirector _locdir; protected LocationDirector _locdir;
protected OccupantDirector _occdir; protected OccupantDirector _occdir;