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...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.