com.springrts.ai.oo
Class OOAICallback

java.lang.Object
  extended by com.springrts.ai.oo.OOAICallback
All Implemented Interfaces:
Comparable<OOAICallback>

public class OOAICallback
extends Object
implements Comparable<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

getTeamId

public int getTeamId()

compareTo

public int compareTo(OOAICallback other)
Specified by:
compareTo in interface Comparable<OOAICallback>

toString

public String toString()
Overrides:
toString in class Object

getEngine

public Engine getEngine()

getTeams

public Teams getTeams()

getSkirmishAIs

public SkirmishAIs getSkirmishAIs()

getSkirmishAI

public SkirmishAI getSkirmishAI()

getLog

public Log getLog()

getDataDirs

public DataDirs getDataDirs()

getGame

public Game getGame()

getGui

public Gui getGui()

getCheats

public Cheats getCheats()

getResources

public List<Resource> getResources()

getEconomy

public Economy getEconomy()

getUnitDefs

public 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. These properties are usually fixed, and not meant to change during a game. The unitId is a unique id for this type of unit.


getEnemyUnits

public List<Unit> getEnemyUnits()
Returns all units that are not in this teams ally-team nor neutral and are in LOS.


getEnemyUnitsIn

public 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.


getEnemyUnitsInRadarAndLos

public 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).


getFriendlyUnits

public List<Unit> getFriendlyUnits()
Returns all units that are in this teams ally-team, including this teams units.


getFriendlyUnitsIn

public 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.


getNeutralUnits

public List<Unit> getNeutralUnits()
Returns all units that are neutral and are in LOS.


getNeutralUnitsIn

public 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.


getTeamUnits

public List<Unit> getTeamUnits()
Returns all units that are of the team controlled by this AI instance. This list can also be created dynamically by the AI, through updating a list on each unit-created and unit-destroyed event.


getSelectedUnits

public List<Unit> getSelectedUnits()
Returns all units that are currently selected (usually only contains units if a human payer is controlling this team as well).


getGroups

public List<Group> getGroups()

getMod

public Mod getMod()

getMap

public Map getMap()

getFeatureDefs

public List<FeatureDef> getFeatureDefs()

getFeatures

public List<Feature> getFeatures()
Returns all features currently in LOS, or all features on the map if cheating is enabled.


getFeaturesIn

public 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.


getWeaponDefs

public List<WeaponDef> getWeaponDefs()