Changeset 5164 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Sep 5, 2005, 11:02:09 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r5163 r5164 32 32 this->setClassID(CL_SHELL_COMMAND, "ShellCommand"); 33 33 this->setName(commandName); 34 this->description = NULL; 34 35 35 36 // this->classID = classID; … … 217 218 } 218 219 220 221 ShellCommandBase* ShellCommandBase::describe(const char* description) 222 { 223 if (this == NULL) 224 return NULL; 225 226 this->description = description; 227 return this; 228 } 229 230 219 231 void ShellCommandBase::debugDyn() 220 232 { … … 236 248 PRINT(0)("Class %s registered command %s with %d parameters: ", elem->className, elem->getName(), elem->paramCount); 237 249 for (unsigned int i = 0; i< elem->paramCount; i++) 238 printf(ShellCommandBase::paramToString(elem->parameters[i])); 250 printf("%s ", ShellCommandBase::paramToString(elem->parameters[i])); 251 if (elem->description != NULL) 252 printf("- %s", elem->description); 239 253 printf("\n"); 240 254
Note: See TracChangeset
for help on using the changeset viewer.