[Home]History of Hanji/AGravEngine

Robo Home | Changes | Preferences | AllPages


Revision 9 . . May 16, 2005 4:25 EST by XLittleP
Revision 8 . . May 13, 2005 2:54 EST by Xlittlep
Revision 4 . . (edit) November 2, 2003 9:13 EST by Noran
  

Difference (from prior major revision) (author diff)

Changed: 184,188c184
Noran

I'm trying to use this engine in the first bot I'm making. I'm new to robocode, but I'm an expert java programmer. I understand
how it works and I'm using a goTo movement function to move to the point I need to go to, but I can't add any gravity points to the AGravEngine? becuase I get a null pointer exception in my onScannedRobot() method everytime. I initialize it at the top of run(), and add a center GravPoint?, and that doesn't mess up at all, but when I even try to call agEngine.reset() at the top of onScannedRobot() I get a null pointer exception. In battle my bot just swings the radar around, but it never moves anywhere, due to the NPE. Any help?
-xLittleP
Noran

Robo Home | Changes | Preferences | AllPages
Search: