[Home]Wiz/HelpRequest

Robo Home | Wiz | Changes | Preferences | AllPages

Showing revision 3
When i have a class, that stores some information and i use this class from my robot like this:

public class MyRobot extends Robot {

   static ExternClass ec = null;

   public void run() {
      if(ec == null)
         ec = new ExternClass();
   }

} 

then ec should be kept static till the battle is over. All right till now (i hope so), but do i have to make my variables in ec static too, in order to save them over the whole battle???

--deathcon

No you don't need to do that. -- Pulsar


Robo Home | Wiz | Changes | Preferences | AllPages
Edit revision 3 of this page | View other revisions | View current revision
Edited November 19, 2004 16:12 EST by Pulsar (diff)
Search: