Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5139 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Aug 26, 2005, 1:54:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: registered 'quit' from GameLoader

Location:
trunk/src/util
Files:
3 edited

Legend:

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

    r5093 r5139  
    1717
    1818#include "game_loader.h"
     19
     20#include "shell_command.h"
    1921#include "campaign.h"
    2022#include "world.h"
     
    2628#include "event.h"
    2729#include "event_handler.h"
    28 
    2930#include <string.h>
    3031
     
    4243  this->setClassID(CL_GAME_LOADER, "GameLoader");
    4344  this->setName("GameLoader");
     45
     46  ShellCommand<GameLoader>::registerCommand("quit", CL_GAME_LOADER, &GameLoader::stop);
    4447}
    4548
     
    165168    hehehe, have ya seen it... :)
    166169*/
    167 ErrorMessage GameLoader::stop()
     170void GameLoader::stop()
    168171{
    169172  if(this->currentCampaign != NULL)
  • trunk/src/util/loading/game_loader.h

    r4885 r5139  
    4747  ErrorMessage loadCampaign(const char* name);
    4848  ErrorMessage start();
    49   ErrorMessage stop();
     49  void stop();
    5050  ErrorMessage pause();
    5151  ErrorMessage resume();
  • trunk/src/util/shell_command.h

    r5137 r5139  
    1818// FORWARD DECLARATION
    1919template<class T> class tList;
    20 template<class T> class tIterator;
    2120
    2221
Note: See TracChangeset for help on using the changeset viewer.