[Home]Wiz/HelpRequest

Robo Home | Wiz | Changes | Preferences | AllPages

Difference (from prior major revision) (no other diffs)

Added: 20a21,22

Ok thanks. --deathcon

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 17:15 EST by Deathcon (diff)
Search: