Code: Select all
@Override public int unitFinished(int unit)
{
int def = clb.Unit_getDef(unit);
String name = clb.UnitDef_getName(def);
clb.Log_log("Unit " + unit + " has unitdef " + def + " which has name " + name);
return 0;
}
Edit: just realized that the tutorial is for the OO java AI. I'll try that one and see if it works.
Edit2: The OO java AI works fine, so I guess I'll use that instead. Out of curiosity, is the Java one broken or a WIP?