Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7428 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Apr 29, 2006, 12:13:38 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: move the Pollution of the ShellCommand to some other File

Location:
trunk/src/lib/shell
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/Makefile.am

    r7374 r7428  
    2222                shell_completion.h \
    2323                shell_completion_plugin.h
     24
     25EXTRA_DIST = some_shell_commands.cc
  • trunk/src/lib/shell/some_shell_commands.cc

    r7426 r7428  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Benjamin Grauer
    1313   co-programmer: ...
    1414*/
    1515
     16/*!
     17 * @file some_shell_commands.cc
     18 * @brief All the ShellCommands, that should not pollute the SourceCode.
     19 */
     20
    1621//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
    1722
    18 #include "proto_class.h"
    19 
    20 using namespace std;
     23#include "shell/shell_command.h"
     24using namespace OrxShell;
    2125
    2226
    23 /**
    24  * standard constructor
    25  * @todo this constructor is not jet implemented - do it
    26 */
    27 ProtoClass::ProtoClass ()
    28 {
    29    this->setClassID(CL_PROTO_ID, "ProtoClass");
    3027
    31    /* If you make a new class, what is most probably the case when you write this file
    32       don't forget to:
    33        1. Add the new file new_class.cc to the ./src/Makefile.am
    34        2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS
     28#include "class_list.h"
     29  SHELL_COMMAND_STATIC(debug, ClassList, ClassList::debugS)
     30      ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output")
     31      ->defaultValues(MT_NULL, 1);
    3532
    36       Advanced Topics:
    37       - if you want to let your object be managed via the ObjectManager make sure to read
    38         the object_manager.h header comments. You will use this most certanly only if you
    39         make many objects of your class, like a weapon bullet.
    40    */
    41 }
     33#include "p_node.h"
     34  SHELL_COMMAND(debugNode, PNode, debugNodeSC);
     35  SHELL_COMMAND(setPosition, PNode, setAbsCoor);
    4236
    4337
    44 /**
    45  * standard deconstructor
    46 */
    47 ProtoClass::~ProtoClass ()
    48 {
    49   // delete what has to be deleted here
    50 }
     38#include "material.h"
     39  SHELL_COMMAND(setDiffuseTexture, Material, setDiffuseMap)
     40      ->defaultValues(MT_NULL, (int)GL_TEXTURE_2D)
     41      ->completionPlugin(0, CompletorFileSystem());
     42
Note: See TracChangeset for help on using the changeset viewer.