class
RegionsetA container that holds a set of Region objects.
Contents
- Reference
Base classes
-
template<class T, typename Compare = std::class SetContainer<BWAPI::Region, IDCompare>
less<>> - This container is used to wrap convenience functions for BWAPI and be used as a bridge with a built-in set type.
Public functions
Function documentation
Unitset BWAPI:: Regionset:: getUnits(const UnitFilter& pred = nullptr) const
Retrieves a Unitset containing all the units that are in this region.
Parameters | |
---|---|
pred | (optional) If this parameter is used, it is a UnitFilter or function predicate that will retrieve only the units whose attributes match the given criteria. If omitted, then a default value of nullptr is used, in which case there is no filter. |
Returns | A Unitset containing all units in this region that have met the requirements of pred . |
Also has the ability to filter the units before the creation of the Unitset.