This header file is interface between botcore.exe which source is not published cause the author wants keep some things in secret. Anyway the author has published this header file for other programmers so they could change the behavior of the corebot.exe. I try clarify this more..
There are 4 files:
botcore.exe <-- source not available.
behaviors.ini <-- contains the name of compiled behavior dll file
bot.h <-- the published header file
botbehavior.cpp <-- C++ file which is compiled to dll. This file also includes the bot.h file
Bot.h presents how programmer may do their own behaviors for the botcore.exe. Bot.h does not need to exsist as long ht behavior code is compiled to dll and it contains following:
// this is the only function a behavior has to implement:
// extern "C" __declspec (dllexport) void CALLBACK BOT_Cmd(BOTCMD *bc)
+;
botcore.exe is calling this callback function every 10 ms
+----------------+
|botcore.exe | +-----+
|CORE | <-->| ini | name of dll
+-------------|--+ +-----+
|Bot.h | | --
| BotCMD | | |
+-------------|--+ | <-- Any Bot programmer may change
|behavior.dll | | if only code is compiled into DLL
| CODE | -- and it exports BOT_Cmd function
+----------------+
Like I said I am not any good with C pluss I know I could do lot of nice new bots if all these things could be done just using Perl.
...Sorry my clumsy english, I hope you figured out the proplem... |