Logo
~Sockets~
~Examples~
~Contact~

West Class Reference
[Commands]

Command: move west. More...

#include <West.h>

Inheritance diagram for West:

Inheritance graph
[legend]
Collaboration diagram for West:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 West ()
void Execute (InSocket *, const std::string &params, Parse &)
 Execute command.
void OnLine (InSocket *, const std::string &line, int state)
 Additional callback, reply to command prompt.
std::string Category ()
 Get command category.

Detailed Description

Command: move west.

Definition at line 28 of file West.h.


Constructor & Destructor Documentation

West::West (  )  [inline]

Definition at line 31 of file West.h.

00031 : Move("west", 'w', -1, 0) {}


Member Function Documentation

void West::Execute ( InSocket ,
const std::string &  arg,
Parse &   
) [virtual]

Execute command.

Implements Command.

Definition at line 24 of file West.cpp.

References Move::try_move().

00025 {
00026         if (from -> GetMoveEvent())
00027         {
00028                 from -> BufferMove("w");
00029         }
00030         else
00031         {
00032                 try_move(from, -1, 0, 0, params.size() > 0);
00033         }
00034 }

void West::OnLine ( InSocket ,
const std::string &  line,
int  state 
) [virtual]

Additional callback, reply to command prompt.

See also:
InSocket::SetPrompt

Reimplemented from Command.

Definition at line 37 of file West.cpp.

References Move::try_create().

00038 {
00039         try_create(from, line, -1, 0, 0);
00040 }

std::string West::Category (  )  [inline, virtual]

Get command category.

Implements Command.

Definition at line 36 of file West.h.

00036 { return "Navigation"; }


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4