- Timestamp:
- Sep 5, 2005, 10:29:03 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5161 r5162 32 32 using namespace std; 33 33 34 S hellCommandBase* tmp = ShellCommand<Shell>::registerCommand("clear", "Shell", &Shell::clear);34 SHELL_COMMAND(clear, Shell, clear); 35 35 36 36 /** … … 76 76 for (int i = 1; i < SDLK_LAST; i++) 77 77 evh->subscribe(this, ES_SHELL, i); 78 79 //void ShellCommand<T>::registerCommand(const char* commandName, ClassID classID, T* object, void* functionPointer, unsigned int paramCount, ...)80 81 82 /* ShellCommand<Shell>::registerCommand("testS", CL_SHELL, &Shell::testS);83 ShellCommand<Shell>::registerCommand("testI", CL_SHELL, &Shell::testI, 5);84 ShellCommand<Shell>::registerCommand("testB", CL_SHELL, &Shell::testB);85 ShellCommand<Shell>::registerCommand("testF", CL_SHELL, &Shell::testF);86 ShellCommand<Shell>::registerCommand("testSF", CL_SHELL, &Shell::testSF);*/87 78 } 88 79 -
trunk/src/lib/shell/shell_command.h
r5161 r5162 21 21 // FORWARD DECLARATION 22 22 template<class T> class tList; 23 24 #define SHELL_COMMAND(command, class, function) \ 25 ShellCommand<class>* shell_command_##class##_##command = ShellCommand<class>::registerCommand(#command, #class, &class::function) 23 26 24 27 -
trunk/src/util/loading/factory.cc
r5161 r5162 20 20 #include "game_loader.h" 21 21 using namespace std; 22 23 SHELL_COMMAND(create, Factory, fabricate); 24 22 25 23 26 /* -------------------------------------------------- … … 71 74 { 72 75 Factory::first = factory; 73 ShellCommand<Factory>::registerCommand("create", "Factory", &Factory::fabricate);74 76 } 75 77 else -
trunk/src/util/loading/game_loader.cc
r5161 r5162 34 34 35 35 36 GameLoader* GameLoader::singletonRef = 0; 36 SHELL_COMMAND(quit, GameLoader, stop); 37 38 39 GameLoader* GameLoader::singletonRef = NULL; 40 37 41 38 42 /** … … 44 48 this->setName("GameLoader"); 45 49 46 ShellCommand<GameLoader>::registerCommand("quit", "GameLoader", &GameLoader::stop);47 50 } 48 51 -
trunk/src/world_entities/player.cc
r5155 r5162 114 114 this->weaponMan->addWeapon(turret4, 2, 5); 115 115 116 117 // ShellCommand<Player>::registerCommand("init", CL_PLAYER, &Player::init);118 116 //this->weaponMan->addWeapon(turret, 3, 0); 119 117
Note: See TracChangeset
for help on using the changeset viewer.