Search found 3 matches

by Rotekian
Tue Sep 30, 2008 2:56 pm
Forum: BitBath
Topic: Struggling with learning concepts.
Replies: 4
Views: 22050

The easiest way to do this is probably... private MasterAndServant myClass; public MasterAndServant() { myClass = null; } public Object think(etc) { if(myClass != null) { return myClass.think(etc); } else { if(isCommander()) { myClass = new Commander(); } else { myClass = new Servant(); } } } // And...
by Rotekian
Mon Jun 09, 2008 8:35 pm
Forum: BitBath
Topic: Simulator Crash
Replies: 1
Views: 16837

Simulator Crash

This error seems to crash the simulator. Could well be related to my use of HashMap. Although switching one Vector to a HashMap reduced the number of individual bots that crashed. Exception in thread "Thread-5" java.lang.Error: invokeinterface not implemented at ojvm.operations.BytecodeInt...
by Rotekian
Thu May 29, 2008 7:31 pm
Forum: BitBath
Topic: ArrayList LinkedList Vector missing?
Replies: 5
Views: 24042

Oops, looks like I should have tested my bot non-natively before I submitted it.

Edit: Changing my Vector to a HashMap seems to have made it less broken. Now I just have a null non-null error.