![]() | |
![]() |
![]() |
![]() |
![]() |
overview |
mbtalk provides parsing routines for mikeBot Language messages, as well as skeleton support for automated taunts. This class overrides qcs::gotSayMessage() and thus passes all "say" messages through its parse routines.Note that when done, mikeBot Language support for the socket interface will probably be put into qproxy, and not here.
member variables |
class mbtalk : public mbotbase { private: char mbt_message[ Q_MAX_STRING ]; int cooperating; public: };
- mbt_message
- A temproary buffer to hold console commands.
- cooperating
- If non-zero, represents the playernumber of the bot's teammate.
member functions |
class mbtalk : public mbotbase { private: void parseMessage( char * ); public: mbtalk(); ~mbtalk(); void update(); void gotSayMessage( char * x ); };
parseMessage Looks for and reacts to mikeBot Language commands.
update Called on each server update (every 0.10 seconds). mbtalk is the first class updated (before both mbfire and mbnav)
gotSayMessage Overrides qcs::gotSayMessage() to route all say messages through this class.