ScummVM API documentation
HDB::AI Class Reference

Public Member Functions

void init ()
 
void clearPersistent ()
 
void restartSystem ()
 
const char * funcLookUp (FuncPtr function)
 
FuncPtr funcLookUp (const char *function)
 
void save (Common::OutSaveFile *out)
 
void loadSaveFile (Common::InSaveFile *in)
 
void initAnimInfo ()
 
AIEntityspawn (AIType type, AIDir dir, int x, int y, const char *funcInit, const char *funcAction, const char *funcUse, AIDir dir2, int level, int value1, int value2, int callInit)
 
bool cacheEntGfx (AIEntity *e, bool initFlag)
 
void stopEntity (AIEntity *e)
 
AIEntitylocateEntity (const char *luaName)
 
AIEntityfindEntity (int x, int y)
 
AIEntityfindEntityIgnore (int x, int y, AIEntity *ignore)
 
AIEntityfindEntityType (AIType type, int x, int y)
 
void getEntityXY (const char *entName, int *x, int *y)
 
bool useLuaEntity (const char *initName)
 
void removeLuaEntity (const char *initName)
 
void animLuaEntity (const char *initName, AIState st)
 
void setLuaAnimFrame (const char *initName, AIState st, int frame)
 
int checkForTouchplate (int x, int y)
 
void removeEntity (AIEntity *e)
 
void setEntityGoal (AIEntity *e, int x, int y)
 
void initAllEnts ()
 
void killPlayer (Death method)
 
void stunEnemy (AIEntity *e, int time)
 
int metalOrFleshSND (AIEntity *e)
 
int tileDistance (AIEntity *e1, AIEntity *e2)
 
void animateEntity (AIEntity *e)
 
void animEntFrames (AIEntity *e)
 
void drawEnts (int x, int y, int w, int h)
 
void drawLevel2Ents ()
 
void animGrabbing ()
 
void entityFace (const char *luaName, int dir)
 
void moveEnts ()
 
bool findPath (AIEntity *e)
 
AIEntitylegalMove (int tileX, int tileY, int level, int *result)
 
AIEntitylegalMoveOverWater (int tileX, int tileY, int level, int *result)
 
AIEntitylegalMoveOverWaterIgnore (int tileX, int tileY, int level, int *result, AIEntity *ignore)
 
void addAnimateTarget (int x, int y, int start, int end, AnimSpeed speed, bool killAuto, bool inMap, const char *tileName)
 
void animateTargets ()
 
void addBridgeExtend (int x, int y, int bridgeType)
 
void animateBridges ()
 
void addToFairystones (int index, int tileX, int tileY, int sourceOrDest)
 
int checkFairystones (int tileX, int tileY)
 
void getFairystonesSrc (int index, int *tileX, int *tileY)
 
AIEntityplayerCollision (int topBorder, int bottomBorder, int leftBorder, int rightBorder)
 
bool checkPlayerTileCollision (int x, int y)
 
bool checkPlayerCollision (int x, int y, int border)
 
void clearDiverters ()
 
void laserScan ()
 
void addToActionList (int actionIndex, int x, int y, char *funcLuaInit, char *funcLuaUse)
 
bool checkActionList (AIEntity *e, int x, int y, bool lookAndGrab)
 
void addToHereList (const char *entName, int x, int y)
 
HereTfindHere (int x, int y)
 
void addToAutoList (int x, int y, const char *luaFuncInit, const char *luaFuncUse)
 
void autoDeactivate (int x, int y)
 
bool activateAction (AIEntity *e, int x, int y, int targetX, int targetY)
 
bool checkAutoList (AIEntity *e, int x, int y)
 
bool autoActive (int x, int y)
 
void addCallback (CallbackType type, int x, int y, int delay)
 
void processCallbackList ()
 
void addToLuaList (int x, int y, int value1, int value2, char *luaFuncInit, char *luaFuncAction, char *luaFuncUse)
 
bool checkLuaList (AIEntity *e, int x, int y)
 
bool luaExistAtXY (int x, int y)
 
void addToTeleportList (int teleIndex, int x, int y, int dir, int level, int anim, int usable, const char *luaFuncUse)
 
bool checkTeleportList (AIEntity *e, int x, int y)
 
bool findTeleporterDest (int tileX, int tileY, SingleTele *info)
 
void addToPathList (int x, int y, int type, AIDir dir)
 
ArrowPathfindArrowPath (int x, int y)
 
void addToTriggerList (char *luaFuncInit, char *luaFuncUse, int x, int y, int value1, int value2, char *id)
 
bool checkTriggerList (char *entName, int x, int y)
 
void killTrigger (const char *id)
 
void floatEntity (AIEntity *e, AIState state)
 
bool checkFloating (int x, int y)
 
bool getTableEnt (AIType type)
 
bool walkThroughEnt (AIType type)
 
void getItemSound (AIType type)
 
void lookAtEntity (AIEntity *e)
 
void movePlayer (uint16 buttons)
 
void playerUse ()
 
void setPlayerWeapon (AIType w, Tile *gfx)
 
AIType getPlayerWeapon ()
 
TilegetPlayerWeaponGfx ()
 
TilegetPlayerWeaponSelGfx ()
 
AIEntitygetPlayer ()
 
void getPlayerXY (int *x, int *y)
 
void setPlayerXY (int x, int y)
 
void assignPlayer (AIEntity *p)
 
bool playerDead ()
 
bool playerOnIce ()
 
bool playerLocked ()
 
void setPlayerLock (bool status)
 
void setPlayerInvisible (bool status)
 
bool playerRunning ()
 
void togglePlayerRunning ()
 
bool cinematicsActive ()
 
bool cineAbortable ()
 
void processCines ()
 
void cineCleanup ()
 
void cineAbort ()
 
void cineAddToBlitList (const char *id, Picture *pic, int x, int y, bool masked)
 
PicturecineFindInBlitList (const char *name)
 
void cineRemoveFromBlitList (const char *name)
 
void cineAddToFreeList (Picture *pic)
 
void cineFreeGfx ()
 
void cineStart (bool abortable, const char *abortFunc)
 
void cineStop (const char *funcNext)
 
void cineStartMap (const char *mapName)
 
void cineLockPlayer ()
 
void cineUnlockPlayer ()
 
void cineSetCamera (int x, int y)
 
void cineResetCamera ()
 
void cineMoveCamera (int x, int y, int speed)
 
void cineWait (int seconds)
 
void cineWaitUntilDone ()
 
void cineSetEntity (const char *entName, int x, int y, int level)
 
void cineMoveEntity (const char *entName, int x, int y, int level, int speed)
 
void cineSpawnEntity (AIType t, AIDir d, int x, int y, const char *func_init, const char *func_action, const char *func_use, AIDir d2, int level, int value1, int value2)
 
void cineRemoveEntity (const char *entName)
 
void cineAnimEntity (const char *entName, AIState state, int loop)
 
void cineSetAnimFrame (const char *entName, AIState state, int frame)
 
void cineEntityFace (const char *luaName, double dir)
 
void cineDialog (const char *title, const char *string, int seconds)
 
void cineTextOut (const char *text, int x, int y, int timer)
 
void cineCenterTextOut (const char *text, int y, int timer)
 
void cineDrawPic (const char *id, const char *pic, int x, int y)
 
void cineDrawMaskedPic (const char *id, const char *pic, int x, int y)
 
void cineMovePic (const char *id, const char *pic, int x1, int y1, int x2, int y2, int speed)
 
void cineMoveMaskedPic (const char *id, const char *pic, int x1, int y1, int x2, int y2, int speed)
 
void cineUse (const char *entName)
 
void cinePlaySound (int index)
 
void cinePlayVoice (int index, int actor)
 
void cineFadeIn (bool isBlack, int steps)
 
void cineFadeOut (bool isBlack, int steps)
 
void cineClearForeground (int x, int y)
 
void cineSetBackground (int x, int y, int index)
 
void cineSetForeground (int x, int y, int index)
 
void cineFunction (const char *func)
 
void lookAtXY (int x, int y)
 
void addWaypoint (int px, int py, int x, int y, int level)
 
void removeFirstWaypoint ()
 
void clearWaypoints ()
 
bool traceStraightPath (int x1, int y1, int *x2, int *y2, int *lvl)
 
TilegetStandFrameDir (AIEntity *e)
 
void drawWayPoints ()
 
int waypointsLeft ()
 
bool addToInventory (AIEntity *e)
 
void purgeInventory ()
 
void clearInventory ()
 
int getInvAmount ()
 
int getGemAmount ()
 
int getMonkeystoneAmount ()
 
int getGooCupAmount ()
 
void setGemAmount (int amt)
 
int getInvMax ()
 
AIType getInvItemType (int which)
 
TilegetInvItemGfx (int which)
 
AIEntitygetInvItem (int which)
 
int queryInventory (const char *string)
 
bool removeInvItem (const char *string, int amount)
 
int queryInventoryType (AIType which)
 
int queryInventoryTypeSlot (AIType which)
 
bool removeInvItemType (AIType which, int amount)
 
bool addItemToInventory (AIType type, int amount, const char *funcInit, const char *funcAction, const char *funcUse)
 
void keepInvItem (AIType type)
 
void printYouGotMsg (const char *name)
 
void newDelivery (const char *itemTextName, const char *itemGfxName, const char *destTextName, const char *destGfxName, const char *id)
 
int getDeliveriesAmount ()
 
DlvEntgetDeliveryItem (int which)
 
bool completeDelivery (const char *id)
 
void addGatePuddle (int amount)
 
int getGatePuddles ()
 

Public Attributes

int _gatePuddles
 
int _youGotY
 
bool _playerDead
 
bool _playerInvisible
 
bool _playerOnIce
 
bool _playerEmerging
 
bool _playerRunning
 
uint16 _pushupFrames
 
Tile_pushupGfx [kMaxAnimFrames]
 
uint16 _pushdownFrames
 
Tile_pushdownGfx [kMaxAnimFrames]
 
uint16 _pushleftFrames
 
Tile_pushleftGfx [kMaxAnimFrames]
 
uint16 _pushrightFrames
 
Tile_pushrightGfx [kMaxAnimFrames]
 
Tile_getGfx [5]
 
uint16 _dyingFrames
 
Tile_dyingGfx [kMaxDeathFrames]
 
Tile_goodjobGfx
 
uint16 _horrible1Frames
 
Tile_horrible1Gfx [kMaxDeathFrames]
 
uint16 _horrible2Frames
 
Tile_horrible2Gfx [kMaxDeathFrames]
 
uint16 _horrible3Frames
 
Tile_horrible3Gfx [kMaxDeathFrames]
 
uint16 _horrible4Frames
 
Tile_horrible4Gfx [kMaxDeathFrames]
 
uint16 _plummetFrames
 
Tile_plummetGfx [kMaxDeathFrames]
 
uint16 _clubUpFrames
 
Picture_clubUpGfx [kMaxAnimFrames]
 
uint16 _clubDownFrames
 
Picture_clubDownGfx [kMaxAnimFrames]
 
uint16 _clubLeftFrames
 
Picture_clubLeftGfx [kMaxAnimFrames]
 
uint16 _clubRightFrames
 
Picture_clubRightGfx [kMaxAnimFrames]
 
uint16 _stunUpFrames
 
Tile_stunUpGfx [kMaxAnimFrames]
 
uint16 _stunDownFrames
 
Tile_stunDownGfx [kMaxAnimFrames]
 
uint16 _stunLeftFrames
 
Tile_stunLeftGfx [kMaxAnimFrames]
 
uint16 _stunRightFrames
 
Tile_stunRightGfx [kMaxAnimFrames]
 
Tile_stunLightningGfx [kMaxAnimFrames]
 
Tile_stunnedGfx [kMaxAnimFrames]
 
uint16 _slugUpFrames
 
Tile_slugUpGfx [kMaxAnimFrames]
 
uint16 _slugDownFrames
 
Tile_slugDownGfx [kMaxAnimFrames]
 
uint16 _slugLeftFrames
 
Tile_slugLeftGfx [kMaxAnimFrames]
 
uint16 _slugRightFrames
 
Tile_slugRightGfx [kMaxAnimFrames]
 
uint16 _slugAttackFrames
 
Picture_slugAttackGfx [kMaxAnimFrames]
 
Tile_weaponSelGfx
 
Tile_weaponGfx
 
AIType _weaponSelected
 
int _numGems
 
int _numGooCups
 
int _numMonkeystones
 
int _useSwitchOff
 
int _useSwitchOn
 
int _useHolderEmpty
 
int _useHolderFull
 
int _useSwitch2Off
 
int _useSwitch2On
 
int _useMailsorter
 
int _useAskcomp
 
int _useTeleporter
 
int _useHandswitchOn
 
int _useHandswitchOff
 
int _targetDoorN
 
int _targetDoorP
 
int _targetDoorS
 
int _targetDoorNv
 
int _targetDoorPv
 
int _targetDoorSv
 
int _targetDoor2N
 
int _targetDoor2P
 
int _targetDoor2S
 
int _targetDoor2Nv
 
int _targetDoor2Pv
 
int _targetDoor2Sv
 
int _target2DoorN
 
int _target2DoorP
 
int _target2DoorS
 
int _target2DoorNv
 
int _target2DoorPv
 
int _target2DoorSv
 
int _target3DoorN
 
int _target3DoorP
 
int _target3DoorS
 
int _target3DoorNv
 
int _target3DoorPv
 
int _target3DoorSv
 
int _targetBridgeU
 
int _targetBridgeD
 
int _targetBridgeL
 
int _targetBridgeR
 
int _targetBridgeMidLR
 
int _targetBridgeMidUD
 
int _touchplateOn
 
int _touchplateOff
 
int _templeTouchpOn
 
int _templeTouchpOff
 
int _blockpole
 
int _kcHolderWhiteOff
 
int _kcHolderWhiteOn
 
int _kcHolderBlueOff
 
int _kcHolderBlueOn
 
int _kcHolderRedOff
 
int _kcHolderRedOn
 
int _kcHolderGreenOff
 
int _kcHolderGreenOn
 
int _kcHolderPurpleOff
 
int _kcHolderPurpleOn
 
int _kcHolderBlackOff
 
int _kcHolderBlackOn
 
AIEntLevel2 _entsLevel2 [kMaxLevel2Ents]
 
int _numLevel2Ents
 
InvEnt _inventory [kMaxInventory]
 
int _numInventory
 
DlvEnt _deliveries [kMaxDeliveries]
 
int _numDeliveries
 
Waypoint _waypoints [kMaxWaypoints]
 
int _numWaypoints
 
Tile_waypointGfx [4]
 
Tile_debugQMark
 
LuaT _luaList [kMaxLuaEnts]
 
int _numLuaList
 
ActionInfo _actions [kMaxActions]
 
TeleInfo _teleporters [kMaxTeleporters]
 
int _numTeleporters
 
AIEntity _dummyPlayer
 
AIEntity _dummyLaser
 
bool _laserRescan
 
bool _laserOnScreen
 
AutoAction _autoActions [kMaxAutoActions]
 
Callback _callbacks [kMaxCallbacks]
 
Fairystone _fairystones [kMaxFairystones]
 
Bridge _bridges [kMaxBridges]
 
int _numBridges
 
Common::Array< ArrowPath * > * _arrowPaths
 
Common::Array< HereT * > * _hereList
 
Common::Array< Trigger * > * _triggerList
 
Common::Array< CineCommand * > _cine
 
Picture_cineFreeList [kMaxCineGfx]
 
int _numCineFreeList
 
CineBlit_cineBlitList [kMaxCineGfx]
 
int _numCineBlitList
 
int _stunAnim
 
uint32 _stunTimer
 
Picture_icepSnowballGfxDown
 
Picture_icepSnowballGfxLeft
 
Picture_icepSnowballGfxRight
 
Tile_tileFroglickMiddleUD
 
Tile_tileFroglickWiggleUD [3]
 
Tile_tileFroglickMiddleLR
 
Tile_tileFroglickWiggleLeft [3]
 
Tile_tileFroglickWiggleRight [3]
 
Picture_gfxDragonAsleep
 
Picture_gfxDragonFlap [2]
 
Picture_gfxDragonBreathe [3]
 
Tile_gfxLaserbeamUD [4]
 
Tile_gfxLaserbeamUDTop [4]
 
Tile_gfxLaserbeamUDBottom [4]
 
Tile_gfxLaserbeamLR [4]
 
Tile_gfxLaserbeamLRLeft [4]
 
Tile_gfxLaserbeamLRRight [4]
 

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