How to use the AVRG probe

From Whirled Club Wiki
Revision as of 12:50, 26 August 2018 by Dragawn (talk | contribs) (Created page with "We have provided an extra debugging tool for AVRGs. It is under the [http://www.whirled.com/code/contrib/asdocs/ contrib] code. You can include it with any AVR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

We have provided an extra debugging tool for AVRGs. It is under the contrib code.

You can include it with any AVRG you write. It's basically a GUI that lets you call any function either directly on the client-side API or indirectly through the server-side agent.

The simplest nothing-but-probe application would have a client something like:

<actionscript> package {

     import com.whirled.avrg.AVRGameControl;
     import com.whirled.contrib.avrg.probe.ClientPanel;


     public class Probe extends ClientPanel
     {
          public function Probe ()
          {
              super(new AVRGameControl(this));
              x = y = 10;
          }
     }

}

</actionscript>


and a server agent something like: <actionscript> package {

     import com.whirled.ServerObject;
     import com.whirled.avrg.AVRServerGameControl;
     import com.whirled.contrib.avrg.probe.ServerModule;
     public class Server extends ServerObject
     {
         public function Server ()
        {
             _ctrl = new AVRServerGameControl(this);
             _module = new ServerModule(_ctrl);
             _module.activate();
         }
         protected var _ctrl :AVRServerGameControl;
         protected var _module :ServerModule;
      }

}

</actionscript>