Logo
~Sockets~
~Examples~
~Contact~

Down Class Reference
[Commands]

Command: move down. More...

#include <Down.h>

Inheritance diagram for Down:

Inheritance graph
[legend]
Collaboration diagram for Down:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Down ()
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 down.

Definition at line 28 of file Down.h.


Constructor & Destructor Documentation

Down::Down (  )  [inline]

Definition at line 31 of file Down.h.

00031 : Move("down", 'd', 0, 0) {}


Member Function Documentation

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

Execute command.

Implements Command.

Definition at line 24 of file Down.cpp.

References Move::try_move().

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

void Down::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 Down.cpp.

References Move::try_create().

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

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

Get command category.

Implements Command.

Definition at line 36 of file Down.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