[Home]Wiz/HelpRequest

Robo Home | Wiz | Changes | Preferences | AllPages

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

Ok thanks. --deathcon


Robo Home | Wiz | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited November 19, 2004 16:15 EST by Deathcon (diff)
Search: