public void load(XMLElement myElement, XMLLoader loader) throws XMLTreeException, IOException, XMLInvalidInputException { super.load(myElement, loader); width = myElement.getAttribute("width").getIntValue(); alphaRoads = (Road[]) XMLArray.loadArray(this, loader); loadData.roads = (int[]) XMLArray.loadArray(this, loader); loadData.signconfigs = (int[][]) XMLArray.loadArray(this, loader); loadData.signs = (int[]) XMLArray.loadArray(this, loader); }
public void load(XMLElement myElement, XMLLoader loader) throws XMLTreeException, IOException, XMLInvalidInputException { super.load(myElement, loader); gamma = myElement.getAttribute("gamma").getFloatValue(); random_chance = myElement.getAttribute("random-chance").getFloatValue(); q_table = (float[][][][]) XMLArray.loadArray(this, loader); // v_table=(float[][][])XMLArray.loadArray(this,loader); count = (Vector) XMLArray.loadArray(this, loader, this); // p_table=(Vector)XMLArray.loadArray(this,loader,this); }
public void load(XMLElement myElement, XMLLoader loader) throws XMLTreeException, IOException, XMLInvalidInputException { super.load(myElement, loader); spawnFreq = (SpawnFrequency[]) XMLArray.loadArray(this, loader); destFreq = (DestFrequency[][]) XMLArray.loadArray(this, loader); }