Version 2 (modified by jherwitz, 13 years ago) (diff) |
---|
Java Client Tutorial
This tutorial deals with development and usage of the Quagents Java platform. For further information on classes, member functions, etc., see the Javadoc located in the Quagents3 download.
Front-end Development
This section details front-end Quagents development. This mostly takes place in the quagents3.main package.
Creating a Scenario
All scenarios must extend the abstract Scenario class. This implies that several functions and a constructor are required for every new scenario.
First let us discuss the ocnstructor. The Scenario constructor takes two arguments, a map name and a set of eligible maps to execute the scenario on. The set of maps is in the form of a string array, with each string being the name of the map as quake will recognize it. If the developer wishes to take advantage of the Quagents random map generator, simply put "randommap" as an element of this array.
public static final String[] maps = {"randommap", "delta","firstroom", "hurdles", "largeroom", "medroom", "smallroom", "maze1"}; private static final String scenarioname = "Sandbox"; //... public Sandbox(){ super(scenarioname,maps); }
Writing Quagent Code
Running it all
Back-end Development
This section describes back-end Quagents development
Modifying internal structures =
Implementing a new Entity
GODEntity