#include <NorthEastMove.h>
Public Member Functions | |
virtual move_command | getHandledMovement () const |
Return the handled movement. | |
virtual std::pair< int, int > | getHandledRelCoords () const |
Transform a move_command into a pair of relative coordinates. | |
virtual move_command | getHandledOpposite () const |
Give the opposite movement. | |
NorthEastMove (Move *next) | |
Constructor. |
Definition at line 33 of file NorthEastMove.h.
NorthEastMove::NorthEastMove | ( | Move * | next | ) | [inline] |
Constructor.
next | the next handled move |
Definition at line 63 of file NorthEastMove.h.
00063 : Move(next) {}
move_command NorthEastMove::getHandledMovement | ( | ) | const [virtual] |
Return the handled movement.
Implements Move.
Definition at line 27 of file NorthEastMove.cpp.
References MOVECMD_NORTHEAST.
00027 { 00028 return MOVECMD_NORTHEAST; 00029 }
std::pair< int, int > NorthEastMove::getHandledRelCoords | ( | ) | const [virtual] |
Transform a move_command into a pair of relative coordinates.
Implements Move.
Definition at line 31 of file NorthEastMove.cpp.
move_command NorthEastMove::getHandledOpposite | ( | ) | const [virtual] |
Give the opposite movement.
Implements Move.
Definition at line 36 of file NorthEastMove.cpp.
References MOVECMD_SOUTHWEST.
00036 { 00037 return MOVECMD_SOUTHWEST; 00038 }