Changeset 7412 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Apr 28, 2006, 12:03:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7411 r7412 295 295 } 296 296 297 ShellCommand* ShellCommand::completionPlugin(unsigned int parameter, const CompletorPlugin& completorPlugin) 298 { 299 if (this == NULL || this->executor == NULL) 300 return NULL; 301 302 if (parameter >= this->executor->getParamCount()) 303 { 304 PRINTF(1)("Parameter %d not inside of valid ParameterCount %d of Command %s::%s\n", 305 parameter, this->executor->getParamCount(), this->getName(), this->shellClass->getName()); 306 } 307 else 308 { 309 delete this->completors[parameter]; 310 this->completors[parameter] = completorPlugin.clone(); 311 } 312 return this; 313 } 314 315 297 316 /** 298 317 * @brief prints out nice information about the Shells Commands … … 331 350 332 351 352 353 /////////// 354 // ALIAS // 355 /////////// 356 333 357 /** 334 358 * @param aliasName the name of the Alias
Note: See TracChangeset
for help on using the changeset viewer.