ScummVM API documentation
Scumm::AI Class Reference

Public Member Functions

 AI (ScummEngine_v100he *vm)
 
void resetAI ()
 
void cleanUpAI ()
 
void setAIType (const int paramCount, const int32 *params)
 
int masterControlProgram (const int paramCount, const int32 *params)
 
int getClosestUnit (int x, int y, int radius, int player, int alignment, int unitType, int checkUnitEnabled)
 
int getClosestUnit (int x, int y, int radius, int player, int alignment, int unitType, int checkUnitEnabled, int minDist)
 
int getDistance (int originX, int originY, int endX, int endY)
 
int calcAngle (int originX, int originY, int endX, int endY)
 
int calcAngle (int originX, int originY, int endX, int endY, int noWrapFlag)
 
int getTerrain (int x, int y)
 
int getHubX (int hub)
 
int getHubY (int hub)
 
int getMaxX ()
 
int getMaxY ()
 
int getCurrentPlayer ()
 
int getMaxPower ()
 
int getMinPower ()
 
int getTerrainSquareSize ()
 
int getBuildingOwner (int building)
 
int getBuildingState (int building)
 
int getBuildingType (int building)
 
int getBuildingArmor (int building)
 
int getBuildingMaxArmor (int building)
 
int getBuildingWorth (int building)
 
int getBuildingTeam (int building)
 
int getPlayerEnergy ()
 
int getPlayerMaxTime ()
 
int getTimerValue (int timerNum)
 
int getPlayerTeam (int player)
 
int getAnimSpeed ()
 
int simulateBuildingLaunch (int x, int y, int power, int angle, int numSteps, int isEnergy)
 
int getPowerAngleFromPoint (int originX, int originY, int endX, int endY, int threshold, int olFlag)
 
int getPowerAngleFromPoint (int originX, int originY, int endX, int endY, int threshold)
 
int checkIfWaterState (int x, int y)
 
int getUnitsWithinRadius (int x, int y, int radius)
 
float degToRad (float degrees)
 
int getEnergyHogType ()
 

Public Attributes

Common::Array< int > _lastXCoord [5]
 
Common::Array< int > _lastYCoord [5]
 
ScummEngine_v100he * _vm
 
AIEntity_aiType [5]
 
int _aiState
 
int _behavior
 
int _energyHogType
 
patternList_moveList [5]
 
const int32 * _mcpParams
 

The documentation for this class was generated from the following file: