Changeset 5152 in orxonox.OLD for trunk/src/util
- Timestamp:
- Aug 27, 2005, 1:06:04 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 3 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 -
trunk/src/util/shell.h
r5145 r5152 41 41 void testI (int i); 42 42 void testS (const char* s); 43 void testB (bool b); 44 void testF (float f); 43 45 44 46 void activate(); -
trunk/src/util/shell_command.h
r5151 r5152 131 131 FUNCTOR_LIST(1)(l_INT); 132 132 FUNCTOR_LIST(1)(l_STRING); 133 FUNCTOR_LIST(1)(l_FLOAT); 134 FUNCTOR_LIST(1)(l_BOOL); 133 135 #undef FUNCTOR_LIST 134 136 … … 140 142 FUNCTOR_LIST(1)(l_INT); 141 143 FUNCTOR_LIST(1)(l_STRING); 144 FUNCTOR_LIST(1)(l_FLOAT); 145 FUNCTOR_LIST(1)(l_BOOL); 142 146 #undef FUNCTOR_LIST 143 147 … … 152 156 FUNCTOR_LIST(1)(l_INT); 153 157 FUNCTOR_LIST(1)(l_STRING); 158 FUNCTOR_LIST(1)(l_FLOAT); 159 FUNCTOR_LIST(1)(l_BOOL); 154 160 #undef FUNCTOR_LIST 155 161 }
Note: See TracChangeset
for help on using the changeset viewer.