google-code-export / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

Suggestion: isBeingGathered() for mineral patches. #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment there is no good/clear/elegant way to track when a mineral is 
busy. (IE: When any worker is at the mineral with the MiningMinerals order).

This would greatly improve the efficiency of mineral micro. 

Original issue reported on code.google.com by Clck...@gmail.com on 26 Nov 2009 at 10:31

GoogleCodeExporter commented 9 years ago
Dechnical details:
There is a BYTE at BW::Unit+0xD3, can someone plz decypher which variable that 
is? I 
think it's resourceCount, but if it is, then the naming's wrong. The byte is 1 
if 
someone gathers the mineal, else 0.

Original comment by goo...@teabix.com on 26 Nov 2009 at 11:05

GoogleCodeExporter commented 9 years ago
It is now isBeingMined.
Post if you think the name should be changed.

Original comment by AHeinerm on 26 Nov 2009 at 2:01

GoogleCodeExporter commented 9 years ago
Just tried it, it's also reacting when gas is being gathered. I think in this 
case 
isBeingGathered is the more appropriate name.

Original comment by goo...@teabix.com on 26 Nov 2009 at 6:40