MachineIntelligenceCore:Algorithms
|
Interface class representing an action in 2-D space. More...
#include <Action2D.hpp>
Public Member Functions | |
Action2DInterface () | |
Public Attributes | |
int | dx |
Increment according to x axis. More... | |
int | dy |
Increment according to y axis. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os_, const Action2DInterface &ac_) |
Interface class representing an action in 2-D space.
Definition at line 52 of file Action2D.hpp.
|
inline |
Default constructor. (Re)sets increments. Protected - to be used by derived classes.
Definition at line 64 of file Action2D.hpp.
|
friend |
Returns ostream containing description of given position.
os_ | Ostream. |
pos_ | Position. |
Definition at line 72 of file Action2D.hpp.
int mic::types::Action2DInterface::dx |
Increment according to x axis.
Definition at line 56 of file Action2D.hpp.
Referenced by mic::types::Position2D::move(), mic::types::Position2D::operator+(), and mic::types::NESWAction::setAction().
int mic::types::Action2DInterface::dy |
Increment according to y axis.
Definition at line 59 of file Action2D.hpp.
Referenced by mic::types::Position2D::move(), mic::types::Position2D::operator+(), and mic::types::NESWAction::setAction().