|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.springrts.ai.oo.OOAICallback
public class OOAICallback
Method Summary | |
---|---|
int |
compareTo(OOAICallback other)
|
Cheats |
getCheats()
|
DataDirs |
getDataDirs()
|
Economy |
getEconomy()
|
List<Unit> |
getEnemyUnits()
Returns all units that are not in this teams ally-team nor neutral and are in LOS. |
List<Unit> |
getEnemyUnitsIn(AIFloat3 pos,
float radius)
Returns all units that are not in this teams ally-team nor neutral and are in LOS plus they have to be located in the specified area of the map. |
List<Unit> |
getEnemyUnitsInRadarAndLos()
Returns all units that are not in this teams ally-team nor neutral and are in some way visible (sight or radar). |
Engine |
getEngine()
|
List<FeatureDef> |
getFeatureDefs()
|
List<Feature> |
getFeatures()
Returns all features currently in LOS, or all features on the map if cheating is enabled. |
List<Feature> |
getFeaturesIn(AIFloat3 pos,
float radius)
Returns all features in a specified area that are currently in LOS, or all features in this area if cheating is enabled. |
List<Unit> |
getFriendlyUnits()
Returns all units that are in this teams ally-team, including this teams units. |
List<Unit> |
getFriendlyUnitsIn(AIFloat3 pos,
float radius)
Returns all units that are in this teams ally-team, including this teams units plus they have to be located in the specified area of the map. |
Game |
getGame()
|
List<Group> |
getGroups()
|
Gui |
getGui()
|
Log |
getLog()
|
Map |
getMap()
|
Mod |
getMod()
|
List<Unit> |
getNeutralUnits()
Returns all units that are neutral and are in LOS. |
List<Unit> |
getNeutralUnitsIn(AIFloat3 pos,
float radius)
Returns all units that are neutral and are in LOS plus they have to be located in the specified area of the map. |
List<Resource> |
getResources()
|
List<Unit> |
getSelectedUnits()
Returns all units that are currently selected (usually only contains units if a human payer is controlling this team as well). |
SkirmishAI |
getSkirmishAI()
|
SkirmishAIs |
getSkirmishAIs()
|
int |
getTeamId()
|
Teams |
getTeams()
|
List<Unit> |
getTeamUnits()
Returns all units that are of the team controlled by this AI instance. |
List<UnitDef> |
getUnitDefs()
A UnitDef contains all properties of a unit that are specific to its type, for example the number and type of weapons or max-speed. |
List<WeaponDef> |
getWeaponDefs()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getTeamId()
public int compareTo(OOAICallback other)
compareTo
in interface Comparable<OOAICallback>
public String toString()
toString
in class Object
public Engine getEngine()
public Teams getTeams()
public SkirmishAIs getSkirmishAIs()
public SkirmishAI getSkirmishAI()
public Log getLog()
public DataDirs getDataDirs()
public Game getGame()
public Gui getGui()
public Cheats getCheats()
public List<Resource> getResources()
public Economy getEconomy()
public List<UnitDef> getUnitDefs()
public List<Unit> getEnemyUnits()
public List<Unit> getEnemyUnitsIn(AIFloat3 pos, float radius)
public List<Unit> getEnemyUnitsInRadarAndLos()
public List<Unit> getFriendlyUnits()
public List<Unit> getFriendlyUnitsIn(AIFloat3 pos, float radius)
public List<Unit> getNeutralUnits()
public List<Unit> getNeutralUnitsIn(AIFloat3 pos, float radius)
public List<Unit> getTeamUnits()
public List<Unit> getSelectedUnits()
public List<Group> getGroups()
public Mod getMod()
public Map getMap()
public List<FeatureDef> getFeatureDefs()
public List<Feature> getFeatures()
public List<Feature> getFeaturesIn(AIFloat3 pos, float radius)
public List<WeaponDef> getWeaponDefs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |