diff options
author | Rene Stoeckel <[email protected]> | 2004-09-04 09:01:01 +0000 |
---|---|---|
committer | Rene Stoeckel <[email protected]> | 2004-09-04 09:01:01 +0000 |
commit | 5d8858f709418697651bc4211002a152dc0aceab (patch) | |
tree | 91aa59cdd7720f1218ad940d63af9db835230309 /src/jake2/game/SuperAdapter.java | |
parent | 2848272aedefb24a768fd5a0ad16532568749636 (diff) |
debug messages clean up, shotgun switched back to blaster.
Diffstat (limited to 'src/jake2/game/SuperAdapter.java')
-rw-r--r-- | src/jake2/game/SuperAdapter.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/jake2/game/SuperAdapter.java b/src/jake2/game/SuperAdapter.java index 29dcfb5..fd7e216 100644 --- a/src/jake2/game/SuperAdapter.java +++ b/src/jake2/game/SuperAdapter.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 09.01.2004 by RST. -// $Id: SuperAdapter.java,v 1.2 2004-08-20 21:29:58 salomo Exp $ +// $Id: SuperAdapter.java,v 1.3 2004-09-04 09:01:01 salomo Exp $ package jake2.game; @@ -43,13 +43,12 @@ public class SuperAdapter /** Returns the adapter from the repository given by its ID. */ public static SuperAdapter getFromID(String key) { - System.out.println("SuperAdapter.getFromID(\"" + key + "\")"); SuperAdapter sa = (SuperAdapter) adapters.get(key); // try to create the adapter if (sa == null) { - System.out.println("adapter not found:" + key); + Com.DPrintf("SuperAdapter.getFromID():adapter not found->" + key + "\n"); int pos = key.indexOf('$'); String classname = key; if (pos != -1) @@ -58,19 +57,19 @@ public class SuperAdapter // load class and instantiate try { - System.err.println("loading class " + classname); + //Com.DPrintf("SuperAdapter.getFromID():loading class->" + classname + "\n"); Class.forName(classname).newInstance(); } catch(Exception e) { - System.err.println("jake2: class not found:" + classname); + Com.DPrintf("SuperAdapter.getFromID():class not found->" + classname + "\n"); } // try it again... sa = (SuperAdapter) adapters.get(key); if (sa == null) - System.err.println("jake2: could not load adapter:" + key); + Com.DPrintf("jake2: could not load adapter:" + key + "\n"); } return sa; @@ -83,7 +82,7 @@ public class SuperAdapter adapterid= tr[2].getClassName(); if (adapterid == "") new Throwable("error in creating an adapter id!").printStackTrace(); - else + else register(this, adapterid); } |