Changes between Version 1 and Version 2 of Java Client Tutorial
- Timestamp:
- Oct 23, 2011 12:51:44 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Java Client Tutorial
v1 v2 2 2 == Java Client Tutorial == 3 3 4 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. 5 4 6 === Front-end Development === 7 8 This section details front-end Quagents development. This mostly takes place in the quagents3.main package. 5 9 6 10 ==== Creating a Scenario ==== 7 11 12 All scenarios must extend the abstract Scenario class. This implies that several functions and a constructor are required for every new scenario. 13 14 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. 15 16 {{{ 17 public static final String[] maps = {"randommap", "delta","firstroom", "hurdles", "largeroom", 18 "medroom", "smallroom", "maze1"}; 19 private static final String scenarioname = "Sandbox"; 20 //... 21 public Sandbox(){ 22 super(scenarioname,maps); 23 } 24 }}} 25 26 27 8 28 ==== Writing Quagent Code ==== 9 29 30 ==== Running it all ==== 10 31 11 32 === Back-end Development === 33 34 This section describes back-end Quagents development 12 35 13 36 ==== Modifying internal structures =====