![]() |
East Class ReferenceCommand: move east.
More...
|
Public Member Functions | |
East () | |
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 East.h.
void East::Execute | ( | InSocket * | , | |
const std::string & | arg, | |||
Parse & | ||||
) | [virtual] |
Execute command.
Implements Command.
Definition at line 24 of file East.cpp.
References Move::try_move().
00025 { 00026 if (from -> GetMoveEvent()) 00027 { 00028 from -> BufferMove("e"); 00029 } 00030 else 00031 { 00032 try_move(from, 1, 0, 0, params.size() > 0); 00033 } 00034 }
void East::OnLine | ( | InSocket * | , | |
const std::string & | line, | |||
int | state | |||
) | [virtual] |
Additional callback, reply to command prompt.
Reimplemented from Command.
Definition at line 37 of file East.cpp.
References Move::try_create().
00038 { 00039 try_create(from, line, 1, 0, 0); 00040 }
std::string East::Category | ( | ) | [inline, virtual] |