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

This jitter class treats all units depending on their height: flying, on the ground or under ground (burrowed). More...

#include <jitter.h>

Inherits cherrypi::Jitter.

Public Member Functions

 LayeredJitter (State *st, Rect const &crop, bool allowSameTypeAir=true, bool allowSameTypeGround=false)
 
- Public Member Functions inherited from cherrypi::Jitter
 Jitter (State *st, Rect const &crop, bool allowSameType)
 
Position operator() (Unit *u) const override
 
- Public Member Functions inherited from cherrypi::BaseJitter
 BaseJitter ()
 
virtual ~BaseJitter ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from cherrypi::Jitter
 Jitter ()
 
void fillJitter (State *st, Rect const &crop, std::function< bool(Unit *, Unit *)> const &compatible)
 
- Protected Attributes inherited from cherrypi::Jitter
std::unordered_map< Unit *, PositionjitteredPos_
 

Detailed Description

This jitter class treats all units depending on their height: flying, on the ground or under ground (burrowed).

For example, we make sure that each flying unit is on a separate tile but a flying unit can be on the same tile as a ground unit.

Note that neutral units will always be ignored

Constructor & Destructor Documentation

cherrypi::LayeredJitter::LayeredJitter ( State st,
Rect const &  crop,
bool  allowSameTypeAir = true,
bool  allowSameTypeGround = false 
)

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