Changes between Version 1 and Version 2 of Java Client Tutorial


Ignore:
Timestamp:
Oct 23, 2011 12:51:44 PM (13 years ago)
Author:
jherwitz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Java Client Tutorial

    v1 v2  
    22== Java Client Tutorial ==
    33
     4This 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.
     5
    46=== Front-end Development ===
     7
     8This section details front-end Quagents development. This mostly takes place in the quagents3.main package.
    59
    610==== Creating a Scenario ====
    711
     12All scenarios must extend the abstract Scenario class. This implies that several functions and a constructor are required for every new scenario.
     13
     14First 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.
     15
     16{{{
     17public static final String[] maps = {"randommap", "delta","firstroom", "hurdles", "largeroom",
     18        "medroom", "smallroom", "maze1"};
     19private static final String scenarioname = "Sandbox";
     20//...
     21public Sandbox(){
     22                super(scenarioname,maps);
     23        }
     24}}}
     25
     26
     27
    828==== Writing Quagent Code ====
    929
     30==== Running it all ====
    1031
    1132=== Back-end Development ===
     33
     34This section describes back-end Quagents development
    1235
    1336==== Modifying internal structures =====