Skip to content

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

License

Notifications You must be signed in to change notification settings

krasi0/BwapiAutoObs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages