#include <SouthMove.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. | |
SouthMove (Move *next) | |
Constructor. |
Definition at line 33 of file SouthMove.h.
SouthMove::SouthMove | ( | Move * | next | ) | [inline] |
Constructor.
next | the next handled move |
Definition at line 63 of file SouthMove.h.
00063 : Move(next) {}
move_command SouthMove::getHandledMovement | ( | ) | const [virtual] |
Return the handled movement.
Implements Move.
Definition at line 28 of file SouthMove.cpp.
References MOVECMD_SOUTH.
00028 { 00029 return MOVECMD_SOUTH; 00030 }
std::pair< int, int > SouthMove::getHandledRelCoords | ( | ) | const [virtual] |
Transform a move_command into a pair of relative coordinates.
Implements Move.
Definition at line 32 of file SouthMove.cpp.
move_command SouthMove::getHandledOpposite | ( | ) | const [virtual] |
Give the opposite movement.
Implements Move.
Definition at line 37 of file SouthMove.cpp.
References MOVECMD_NORTH.
00037 { 00038 return MOVECMD_NORTH; 00039 }