Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5202 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Sep 18, 2005, 4:02:35 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more aliases

Location:
trunk/src/lib/shell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_input.cc

    r5197 r5202  
    3333using namespace std;
    3434
     35SHELL_COMMAND(help, ShellInput, help)
     36    ->describe("retrieve some help about the input mode")
     37    ->setAlias("help");
    3538
    3639/**
     
    4144{
    4245  this->pressedKey = SDLK_FIRST;
     46  this->setClassID(CL_SHELL_INPUT, "ShellInput");
    4347
    4448  this->inputLine = new char[1];
     
    173177 * prints out some nice help about the Shell
    174178 */
    175 void ShellInput::help() const
     179void ShellInput::help()
    176180{
    177181  PRINT(0)("Help for the most important Shell-commands\n");
    178182  PRINT(0)("F1 - HELP; F2 - DEBUG; ` - open/close shell\n");
    179183  PRINT(0)("input order:\n");
    180   PRINT(0)("ClassName::objectName function [parameter1, [parameter2 ...]]  or\n");
    181   PRINT(0)("Command [parameter]\n");
     184  PRINT(0)("ClassName [objectName] function [parameter1, [parameter2 ...]]  or\n");
     185  PRINT(0)("Alias [parameter]\n");
    182186}
    183187
  • trunk/src/lib/shell/shell_input.h

    r5185 r5202  
    3232  void setRepeatDelay(float repeatDelay, float repeatRate);
    3333  bool executeCommand();
    34   void help() const;
     34  void help();
    3535
    3636  virtual void tick(float dt);
Note: See TracChangeset for help on using the changeset viewer.