SouthMove Class Reference

#include <SouthMove.h>

Inheritance diagram for SouthMove:

Inheritance graph
[legend]
Collaboration diagram for SouthMove:

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

Detailed Description

< A movement to the south

Definition at line 33 of file SouthMove.h.


Constructor & Destructor Documentation

SouthMove::SouthMove ( Move next  )  [inline]

Constructor.

Parameters:
next the next handled move

Definition at line 63 of file SouthMove.h.

00063 : Move(next) {}


Member Function Documentation

move_command SouthMove::getHandledMovement (  )  const [virtual]

Return the handled movement.

Returns:
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.

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

Implements Move.

Definition at line 32 of file SouthMove.cpp.

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

move_command SouthMove::getHandledOpposite (  )  const [virtual]

Give the opposite movement.

Returns:
the opposite movement

Implements Move.

Definition at line 37 of file SouthMove.cpp.

References MOVECMD_NORTH.

00037                                                  {
00038   return MOVECMD_NORTH;
00039 }


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