Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5162 in orxonox.OLD for trunk/src/util/loading


Ignore:
Timestamp:
Sep 5, 2005, 10:29:03 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more elaborate and MUCH easier through Macro-definition

Location:
trunk/src/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/factory.cc

    r5161 r5162  
    2020#include "game_loader.h"
    2121using namespace std;
     22
     23SHELL_COMMAND(create, Factory, fabricate);
     24
    2225
    2326/*  --------------------------------------------------
     
    7174  {
    7275    Factory::first = factory;
    73     ShellCommand<Factory>::registerCommand("create", "Factory", &Factory::fabricate);
    7476  }
    7577  else
  • trunk/src/util/loading/game_loader.cc

    r5161 r5162  
    3434
    3535
    36 GameLoader* GameLoader::singletonRef = 0;
     36SHELL_COMMAND(quit, GameLoader, stop);
     37
     38
     39GameLoader* GameLoader::singletonRef = NULL;
     40
    3741
    3842/**
     
    4448  this->setName("GameLoader");
    4549
    46   ShellCommand<GameLoader>::registerCommand("quit", "GameLoader", &GameLoader::stop);
    4750}
    4851
Note: See TracChangeset for help on using the changeset viewer.