|
TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
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 *, Position > | jitteredPos_ |
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
| cherrypi::LayeredJitter::LayeredJitter | ( | State * | st, |
| Rect const & | crop, | ||
| bool | allowSameTypeAir = true, |
||
| bool | allowSameTypeGround = false |
||
| ) |
1.8.11