Overseer
Public Member Functions | List of all members
Overseer::NeutralImpl Struct Reference

Used to find neutral objects on the map. More...

Public Member Functions

 NeutralImpl (const sc2::ObservationInterface *obs)
 Constructor sets all neutral positions to a map. More...
 
bool isMineral (sc2::Point2D &pos)
 Check if a point is a mineral or not. More...
 
bool isGas (sc2::Point2D &pos)
 Check if a point is a geyser or not. More...
 
bool isDestructible (sc2::Point2D &pos)
 Check if a point is a destructable object or not. More...
 
bool isNagaTower (sc2::Point2D &pos)
 Check if a point is a Xelnaga tower or not. More...
 

Detailed Description

Used to find neutral objects on the map.

Constructor & Destructor Documentation

◆ NeutralImpl()

Overseer::NeutralImpl::NeutralImpl ( const sc2::ObservationInterface *  obs)

Constructor sets all neutral positions to a map.

Parameters
obsused to discover neutrals on the map.

Member Function Documentation

◆ isDestructible()

bool Overseer::NeutralImpl::isDestructible ( sc2::Point2D &  pos)

Check if a point is a destructable object or not.

Parameters
posthe point to check.
Returns
true if it is destructable object, otherwise false.

◆ isGas()

bool Overseer::NeutralImpl::isGas ( sc2::Point2D &  pos)

Check if a point is a geyser or not.

Parameters
posthe point to check.
Returns
true if it is geyser, otherwise false.

◆ isMineral()

bool Overseer::NeutralImpl::isMineral ( sc2::Point2D &  pos)

Check if a point is a mineral or not.

Parameters
posthe point to check.
Returns
true if point is mineral, otherwise false.

◆ isNagaTower()

bool Overseer::NeutralImpl::isNagaTower ( sc2::Point2D &  pos)

Check if a point is a Xelnaga tower or not.

Parameters
posthe point to check.
Returns
true if it is Xelnaga tower, otherwise false.

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