TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Protected Attributes | List of all members
cherrypi::movefilters::UnionPositionFilter Class Reference

class to combine filters More...

#include <movefilters.h>

Inherits cherrypi::movefilters::PositionFilter.

Public Member Functions

 UnionPositionFilter (PositionFilters l, PositionFilterPolicy policy=PositionFilterPolicy::ACCEPT_IF_ALL, bool blocking=false)
 
bool isValid (Unit *agent, Position const &pos) override
 
float score (Unit *agent, Position const &pos) override
 
bool blocking () override
 
- Public Member Functions inherited from cherrypi::movefilters::PositionFilter
virtual ~PositionFilter ()=default
 

Protected Attributes

PositionFilters allFilters_
 
PositionFilterPolicy policy_
 
bool blocking_
 

Detailed Description

class to combine filters

Constructor & Destructor Documentation

cherrypi::movefilters::UnionPositionFilter::UnionPositionFilter ( PositionFilters  l,
PositionFilterPolicy  policy = PositionFilterPolicy::ACCEPT_IF_ALL,
bool  blocking = false 
)
inline

Member Function Documentation

bool cherrypi::movefilters::UnionPositionFilter::blocking ( )
inlineoverridevirtual
bool cherrypi::movefilters::UnionPositionFilter::isValid ( Unit agent,
Position const &  pos 
)
inlineoverridevirtual
float cherrypi::movefilters::UnionPositionFilter::score ( Unit agent,
Position const &  pos 
)
inlineoverridevirtual

Member Data Documentation

PositionFilters cherrypi::movefilters::UnionPositionFilter::allFilters_
protected
bool cherrypi::movefilters::UnionPositionFilter::blocking_
protected
PositionFilterPolicy cherrypi::movefilters::UnionPositionFilter::policy_
protected

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