-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add features to circumvent BWAPI's unit data invalidation? #85
Comments
I think it's a good addition to have them in extra separate methods in Unit, almost every bot author will find it useful to track where a unit from the opponent was last seen. |
That's a fair argument. Having "lastKnown" data is useful without a doubt. How to provide such data in a useful but extendible way is interesting. I would say the
In this specific case, the |
I think it best to do the simplest thing (forward BWAPI's data) and push improvements to the reported data upstream to BWAPI itself. The handling of previously seen units carries some inherent subjectivity (is the unit's presumed location where it was last seen? moving along the path it was following? what if you see the location later and the unit's not there? what if you can infer that the unit isn't there because it was a Spider Mine and you just walked over it? etc.) Most authors beyond some level of sophistical will want/need to implement their own proxies on top of Unit anyhow. The primary need for consumers of alternative language wrappers is the most complete and accurate reporting of game data possible. BWAPI4J is serving excellently if it can do that. Further utility is better left for smaller libraries that can move faster and aren't coupled to the wrapper like https://github.com/andertavares/StarCraftUnitInfo |
All the Therefore I don't like the removal of |
Example of a removed feature: 259555e
If an enemy unit moves out of vision, BWAPI hides most the unit's data. Such examples are marking its position as
Position::None
orPosition::Unknown
or possibly crashing when trying to access certain data. Should BWAPI4J provide "lastKnownXXXX" data in theUnit
object or leave it up to the user for such an implementation?The text was updated successfully, but these errors were encountered: