krasi0 / BwapiAutoObs

In-game auto screen repositioning depending on the current game play action.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BwapiAutoObs

In-game auto screen repositioning depending on the current game play action.
Supports Starcraft Broodwar version 1.16.1, BWAPI 4+ (for BWAPI 3.7.X support, one has to use the commit from Dec 2013).
Currently in use on http://bots-stats.krasi0.com/ and http://sscaitournament.com/

You could integrate it in your AI or as a part of tournament module. The code relies on BWAPI methods only! It's very useful when you want to sit back and watch (your) bots play or you would like to stream / record a bots game.


Instantiating and enabling: //auto observer this->_autoObs = new AutoObs(); this->_autoObs->toggle();

Using in the different BWAPI events is done as following:

void ExampleTournamentAI::onFrame() { //autoObs this->_autoObs->onGameUpdate(); ...

Similar is the usage within the rest of the events like: onUnitShow(BWAPI::Unit* unit), onUnitHide(BWAPI::Unit* unit), etc


Please provide feedback / report issues so that we could improve the automatic observer even more! Thanks!

About

In-game auto screen repositioning depending on the current game play action.

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%