![]() |
Down Class ReferenceCommand: move down.
More...
|
Public Member Functions | |
Down () | |
void | Execute (InSocket *, const std::string ¶ms, Parse &) |
Execute command. | |
void | OnLine (InSocket *, const std::string &line, int state) |
Additional callback, reply to command prompt. | |
std::string | Category () |
Get command category. |
Definition at line 28 of file Down.h.
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.
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] |