![]() |
SC2API
An API for AI for StarCraft II
|
#include <sc2_unit_filters.h>
Public Member Functions | |
bool | operator() (const Unit &unit_) const |
Determines if the unit is visible mineral patch. All the visible mineral patches has non-zero mineral contents while the mineral patches covered by the fog of war don't have such parameter (it is always zero) and can't be selected/targeted. This filter returns only the visible and not depleted mineral patches.