Feature Request: AI javadoc to be auto-regenerated again
Posted: 10 Jun 2015, 10:56
Recently i've tried updating Cran's Java AI to work with ZK, and had moderate successes. However, when doing so i bumped into apparent lack of Game/Team RulesParams access in the java interface documentation, filing it under "got implemented in cpp interface, but not in Java". The javadoc link in the wiki says that the documentation is regenerated daily, and afair the GRP/TRP changes pre-dated 98.0.
However, apparently, this perception was erroneous, because this works:
Is whatever technology was responsible for regenerating the javadoc offline? Or is it only run for releases, and my memory fails about GRP/TRP being available in 98.0?
However, apparently, this perception was erroneous, because this works:
Code: Select all
@Override
public int update(int frame) {
if (frame % 90 == 0) {
List<Team> teams = clb.getAllyTeams();
sendTextMsg("AllyTeam size = " + teams.size());
for (Team team : teams) {
sendTextMsg("\tteam " + team.getTeamId());
List<TeamRulesParam> trps = team.getTeamRulesParams();
sendTextMsg("TeamRulesParams size = " + trps.size());
int i = 0;
for (TeamRulesParam p : trps) {
sendTextMsg("\tparam: " + p.getName() + "\tfloat: " + p.getValueFloat() + "\tstring: " + p.getValueString());
if (++i >= 3) {
break;
}
}
TeamRulesParam p = team.getTeamRulesParamByName("commSpawned");
sendTextMsg("param commSpawned: " + p.getValueFloat());
}
List<GameRulesParam> grps = clb.getGame().getGameRulesParams();
sendTextMsg("GameRulesParams size = " + grps.size());
int i = 0;
for (GameRulesParam p : grps) {
sendTextMsg("\tparam: " + p.getName() + "\tfloat: " + p.getValueFloat() + "\tstring: " + p.getValueString());
if (++i >= 3) {
break;
}
}
GameRulesParam p = clb.getGame().getGameRulesParamByName("CAI_disabled");
sendTextMsg("param CAI_disabled: " + p.getValueFloat());
}
return 0; // signaling: OK
}