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