Changeset 7428 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 29, 2006, 12:13:38 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/Makefile.am
r7374 r7428 22 22 shell_completion.h \ 23 23 shell_completion_plugin.h 24 25 EXTRA_DIST = some_shell_commands.cc -
trunk/src/lib/shell/some_shell_commands.cc
r7426 r7428 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ 15 15 16 /*! 17 * @file some_shell_commands.cc 18 * @brief All the ShellCommands, that should not pollute the SourceCode. 19 */ 20 16 21 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 22 18 #include "proto_class.h" 19 20 using namespace std; 23 #include "shell/shell_command.h" 24 using namespace OrxShell; 21 25 22 26 23 /**24 * standard constructor25 * @todo this constructor is not jet implemented - do it26 */27 ProtoClass::ProtoClass ()28 {29 this->setClassID(CL_PROTO_ID, "ProtoClass");30 27 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.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS28 #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); 35 32 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); 42 36 43 37 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.