TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | List of all members
cherrypi::movefilters::PositionFilter Class Referenceabstract

Assigns positions a score and validity, based on some criteria. More...

#include <movefilters.h>

Inherited by cherrypi::movefilters::FuncPositionFilter< T, Container >, cherrypi::movefilters::MultiPositionFilter, and cherrypi::movefilters::UnionPositionFilter.

Public Member Functions

virtual ~PositionFilter ()=default
 
virtual bool isValid (Unit *, Position const &)=0
 
virtual float score (Unit *, Position const &)=0
 
virtual bool blocking ()=0
 

Detailed Description

Assigns positions a score and validity, based on some criteria.

Used for threat-aware pathfinding.

Constructor & Destructor Documentation

virtual cherrypi::movefilters::PositionFilter::~PositionFilter ( )
virtualdefault

Member Function Documentation

virtual bool cherrypi::movefilters::PositionFilter::blocking ( )
pure virtual
virtual bool cherrypi::movefilters::PositionFilter::isValid ( Unit ,
Position const &   
)
pure virtual
virtual float cherrypi::movefilters::PositionFilter::score ( Unit ,
Position const &   
)
pure virtual

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