getVersion function
Retrieves the version of the loaded BWAgent.dll file.
int getVersion();
Parameters
None.
Return Value
Returns the version of the BWAgent.dll file you loaded.
Remarks
On startup, AIs should always check if the version of the loaded BWAgent.dll file matches the version of the header files the AI was compiled with. The header files define their version as the SVN_REV constant.
Example Code
if(getVersion() != SVN_REV) { printf("Please give me the BWAgent.dll revision number %d\n", SVN_REV); exit(1); }