00001 00009 #ifndef BOT_H 00010 #define BOT_H 00011 00012 #include "botai.h" 00013 #include "graphicsengine.h" 00014 00019 class CBot : public CBotInfo 00020 { 00021 public: 00023 CBot(const char *aDllName); 00024 00030 void spawn(const char **aTileMap, const CGameObj *aGameObjects); 00031 00040 void think(const char **aTileMap, CVisibleBotInfo *aBots, list<CBulletInfo *> *aBulletList, 00041 list<CWeaponInfo *> *aWeaponList, list<TPosition> *aVoices); 00042 00048 void performActions(list<CWeaponInfo *> *aBulletList, list<TPosition> *aVoices); 00049 00055 void chkCollision(const char **aTileMap, CBotInfo **aBots); 00056 00061 void update(float aTimeFactor); 00062 00063 private: 00064 void loadAI(); 00065 00066 CBotAI *mBotAI; 00067 char *mDllName; 00068 HMODULE mDllHandle; 00069 int mFrags; 00070 }; 00071 00072 #endif // BOT_H