SouthWestMove Class Reference

#include <SouthWestMove.h>

Inheritance diagram for SouthWestMove:

Inheritance graph
[legend]
Collaboration diagram for SouthWestMove:

Collaboration graph
[legend]

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.
 SouthWestMove (Move *next)
 Constructor.

Detailed Description

< A movement to the south west

Definition at line 33 of file SouthWestMove.h.


Constructor & Destructor Documentation

SouthWestMove::SouthWestMove ( Move next  )  [inline]

Constructor.

Parameters:
next the next handled move

Definition at line 63 of file SouthWestMove.h.

00063 : Move(next) {}


Member Function Documentation

move_command SouthWestMove::getHandledMovement (  )  const [virtual]

Return the handled movement.

Returns:
handled movement

Implements Move.

Definition at line 27 of file SouthWestMove.cpp.

References MOVECMD_SOUTHWEST.

00027                                                      {
00028   return MOVECMD_SOUTHWEST;
00029 }

std::pair< int, int > SouthWestMove::getHandledRelCoords (  )  const [virtual]

Transform a move_command into a pair of relative coordinates.

Returns:
the pair of the future coordinate (after the move)

Implements Move.

Definition at line 31 of file SouthWestMove.cpp.

00031                                                           {
00032   std::pair<int,int> p(1, -1);
00033   return p;
00034 }

move_command SouthWestMove::getHandledOpposite (  )  const [virtual]

Give the opposite movement.

Returns:
the opposite movement

Implements Move.

Definition at line 36 of file SouthWestMove.cpp.

References MOVECMD_NORTHEAST.

00036                                                      {
00037   return MOVECMD_NORTHEAST;
00038 }


The documentation for this class was generated from the following files:
Generated on Sat Feb 2 22:23:18 2008 for Teapot Colony Wars by  doxygen 1.5.4