|
MachineIntelligenceCore:Algorithms
|
Class representing an N/E/S/W action. More...
#include <Action2D.hpp>


Public Member Functions | |
| NESWAction () | |
| NESWAction (NESW type_) | |
| NESWAction (size_t type_) | |
| void | setAction (NESW type_) |
Public Member Functions inherited from mic::types::Action2D< NESW > | |
| virtual | ~Action2D () |
| NESW | getType () |
Public Member Functions inherited from mic::types::Action2DInterface | |
| Action2DInterface () | |
Friends | |
| std::ostream & | operator<< (std::ostream &os_, const NESWAction &ac_) |
Additional Inherited Members | |
Public Attributes inherited from mic::types::Action2DInterface | |
| int | dx |
| Increment according to x axis. More... | |
| int | dy |
| Increment according to y axis. More... | |
Protected Member Functions inherited from mic::types::Action2D< NESW > | |
| Action2D () | |
Protected Attributes inherited from mic::types::Action2D< NESW > | |
| NESW | type |
Class representing an N/E/S/W action.
Definition at line 124 of file Action2D.hpp.
|
inline |
NESW action constructor. Sets action to none.
Definition at line 129 of file Action2D.hpp.
References mic::types::None, and mic::types::Action2D< NESW >::type.
|
inline |
Default NESW action constructor. Sets increments according to action type.
Definition at line 134 of file Action2D.hpp.
References setAction().

|
inline |
Default NESW action constructor. Sets increments according to action type.
Definition at line 139 of file Action2D.hpp.
References setAction().

|
inlinevirtual |
Sets increments according to action value.
| ActionType | Type of action. |
Implements mic::types::Action2D< NESW >.
Definition at line 145 of file Action2D.hpp.
References mic::types::Action2DInterface::dx, mic::types::Action2DInterface::dy, mic::types::East, mic::types::Exit, mic::types::None, mic::types::North, mic::types::South, mic::types::Action2D< NESW >::type, and mic::types::West.
Referenced by NESWAction(), and mic::types::RandomNESWAction::RandomNESWAction().
|
friend |
Returns ostream containing description of given position.
| os_ | Ostream. |
| pos_ | Position. |
Definition at line 164 of file Action2D.hpp.