How to use the AVRG probe
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>