Skip to content
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

Get the initial amount of resource of a mineral patch or a geyser #112

Open
richoux opened this issue Dec 1, 2021 · 0 comments
Open

Get the initial amount of resource of a mineral patch or a geyser #112

richoux opened this issue Dec 1, 2021 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@richoux
Copy link

richoux commented Dec 1, 2021

It would be nice to have a data in sc2::Unit to know the initial amount of resource in a mineral patch or a geyser (for instance, 8, 900, or 1800 for a mineral patch), to get the same information proposed by the BWAPI::UnitInterface::getInitialResources() method in BWAPI for Brood War.

This would allow bots to make the difference between real resources and blocking mineral patch containing just a quantity of 8 minerals, for instance. It would also allow bots to compute the quantity of initial resources available to all potential base locations.

I am currently developing a terrain analysis tool working with both SC1 and SC2 maps (https://github.com/richoux/Taunt). This feature exists in BWAPI, and it would be nice it also exists in cpp-sc2, so my tool can offer the same features on both games, for instance for spotting blocking minerals.

@alkurbatov alkurbatov self-assigned this Dec 1, 2021
@alkurbatov alkurbatov added the feature New feature or request label Dec 1, 2021
@alkurbatov alkurbatov added this to the v1.4.1 milestone Dec 1, 2021
@alkurbatov alkurbatov modified the milestones: v1.4.1, v1.4.2 Jan 8, 2022
@alkurbatov alkurbatov removed this from the v1.4.2 milestone Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants