#include <NorthWestMove.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. | |
| NorthWestMove (Move *next) | |
| Constructor. | |
Definition at line 33 of file NorthWestMove.h.
| NorthWestMove::NorthWestMove | ( | Move * | next | ) | [inline] |
Constructor.
| next | the next handled move |
Definition at line 62 of file NorthWestMove.h.
00062 : Move(next) {}
| move_command NorthWestMove::getHandledMovement | ( | ) | const [virtual] |
Return the handled movement.
Implements Move.
Definition at line 27 of file NorthWestMove.cpp.
References MOVECMD_NORTHWEST.
00027 { 00028 return MOVECMD_NORTHWEST; 00029 }
| std::pair< int, int > NorthWestMove::getHandledRelCoords | ( | ) | const [virtual] |
Transform a move_command into a pair of relative coordinates.
Implements Move.
Definition at line 31 of file NorthWestMove.cpp.
| move_command NorthWestMove::getHandledOpposite | ( | ) | const [virtual] |
Give the opposite movement.
Implements Move.
Definition at line 36 of file NorthWestMove.cpp.
References MOVECMD_SOUTHEAST.
00036 { 00037 return MOVECMD_SOUTHEAST; 00038 }
1.5.4