MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
mic::types::Action2DInterface Class Reference

Interface class representing an action in 2-D space. More...

#include <Action2D.hpp>

Inheritance diagram for mic::types::Action2DInterface:

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_)
 

Detailed Description

Interface class representing an action in 2-D space.

Author
tkornuta

Definition at line 52 of file Action2D.hpp.

Constructor & Destructor Documentation

mic::types::Action2DInterface::Action2DInterface ( )
inline

Default constructor. (Re)sets increments. Protected - to be used by derived classes.

Definition at line 64 of file Action2D.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os_,
const Action2DInterface ac_ 
)
friend

Returns ostream containing description of given position.

Parameters
os_Ostream.
pos_Position.
Returns
Returned ostream object.

Definition at line 72 of file Action2D.hpp.

Member Data Documentation

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().


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