#include <bot.h>
Inheritance diagram for CBot:
Public Member Functions | |
CBot (const char *aDllName) | |
Constructor. | |
void | spawn (const char **aTileMap, const CGameObj *aGameObjects) |
Reloads AI from dll, creates and initializes new bot. | |
void | think (const char **aTileMap, CVisibleBotInfo *aBots, list< CBulletInfo * > *aBulletList, list< CWeaponInfo * > *aWeaponList, list< TPosition > *aVoices) |
Updates visible objects and bots actions using CBotAI. | |
void | performActions (list< CWeaponInfo * > *aBulletList, list< TPosition > *aVoices) |
Does error checking and performs valid actions. | |
void | chkCollision (const char **aTileMap, CBotInfo **aBots) |
Checks and handles collisions. | |
void | update (float aTimeFactor) |
Moves bot and prepares it for drawing. |
Bots are controlled using CBotAI. AI is always reloaded during spawning.
|
Constructor.
|
|
Checks and handles collisions. See CMovingGameObj::chkCollision().
|
|
Does error checking and performs valid actions.
|
|
Reloads AI from dll, creates and initializes new bot.
|
|
Updates visible objects and bots actions using CBotAI.
|
|
Moves bot and prepares it for drawing.
|