Generator for BwMirror API (Note: Originally a fork of https://github.com/vjurenka/BWMirror-Generator)
This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
gered 2bff907f93 more robust way of extracting dlls / bwta data from classpath resources
this is important, as if you want to run the TestBot in the bwmirror project
directly from an IDE, the dlls and bwta data files are not being extracted
from a JAR file and the extraction would fail. this method is a fair bit more
robust and will automatically handle those differences.

in addition, using System.load instead of System.loadLibrary to load
the bwapi_bridge native library. this allows us to stop doing that hacky
reflection thing to reset the java.library.path property and just pass in
an absolute path to bwapi_bridge.dll
2017-04-11 18:37:30 -04:00
bwapi-includes remove BWAPI3 support 2017-04-11 10:48:21 -04:00
bwapi_bridge add msvc project events to copy/clean bwapi_bridge to bwmirror project tree 2017-04-11 12:24:46 -04:00
bwmirror oops, forgot to fix this name 2017-04-11 16:56:03 -04:00
bwta2-includes for consistency, rename /bwta2-c to /bwta2-includes 2017-04-11 13:08:48 -04:00
generator for consistency, rename /bwta2-c to /bwta2-includes 2017-04-11 13:08:48 -04:00
manual-bwapi more robust way of extracting dlls / bwta data from classpath resources 2017-04-11 18:37:30 -04:00
.gitattributes initial commit 2014-08-05 10:43:14 +02:00
.gitignore update gitignore 2017-04-11 18:34:13 -04:00
gmp-vc90-mt.dll initial commit 2014-08-05 10:43:14 +02:00
javadoc_script.bat BWMIrror v2.1 2015-03-22 18:44:15 +01:00
LICENSE.md initial commit 2014-08-05 10:43:14 +02:00
mpfr-vc90-mt.dll initial commit 2014-08-05 10:43:14 +02:00
README.md readme 2016-02-28 19:47:26 +01:00

BWMirror API

Directory explanation

  • bwapi-data/ : just some BWTA analyzed maps, so you can test the API in real game

  • bwapi4-includes/ : the headers from BWAPI4, for now, just paste the headers here, the generators uses these to create the .java files and then the .cpp

  • bwta2-c/ : the headers from BWTA2, same as above

  • c4/ : the final .cpp, generated by the project, kept in the repo just as a showcase

  • lib/ : only jsoup to parse htmls with documentation

  • manual-bwapi/ : .java files which are added to the API, used to inject custom code. Used for BWAPI3

  • manual-bwapi4/ : .java files which are added to the API, used to inject custom code. Used for BWAPI4

  • javadoc_script.bat : script to generate javadoc for API, currently uses absolute paths, should be refactored

  • gmp, mpfr dlls : these are required for BWTA2, if anyone managed to get static versions of these let me know

TODO: improve naming

Instructions to run the generator

Slightly outdated version can be found here

TODO: finish the guide