SC2API
An API for AI for StarCraft II
Public Member Functions | List of all members
sc2::IsVisibleMineralPatch Struct Reference

#include <sc2_unit_filters.h>

Public Member Functions

bool operator() (const Unit &unit_) const
 

Detailed Description

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.


The documentation for this struct was generated from the following file: