Changeset 5152 in orxonox.OLD for trunk/src/util/shell.cc
- Timestamp:
- Aug 27, 2005, 1:06:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell.cc
r5151 r5152 81 81 ShellCommand<Shell>::registerCommand("testS", CL_SHELL, &Shell::testS); 82 82 ShellCommand<Shell>::registerCommand("testI", CL_SHELL, &Shell::testI, 5); 83 ShellCommand<Shell>::registerCommand("testB", CL_SHELL, &Shell::testB); 84 ShellCommand<Shell>::registerCommand("testF", CL_SHELL, &Shell::testF); 83 85 } 84 86 … … 92 94 { 93 95 PRINTF(3)("This is the Test for one String '%s'\n", s); 96 } 97 98 void Shell::testB (bool b) 99 { 100 PRINTF(3)("This is the Test for one Bool: "); 101 if (b) 102 PRINTF(3)("true\n"); 103 else 104 PRINTF(3)("false\n"); 105 } 106 107 void Shell::testF (float f) 108 { 109 PRINTF(3)("This is the Test for one Float '%f'\n", f); 94 110 } 95 111
Note: See TracChangeset
for help on using the changeset viewer.