Changeset 1689 for code/branches/gui/src/orxonox/gamestates
- Timestamp:
- Aug 31, 2008, 6:07:57 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox/gamestates
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSGUI.cc
r1688 r1689 39 39 { 40 40 GSGUI::GSGUI() 41 : GameState Typed<GSGraphics>("gui")41 : GameState<GSGraphics>("gui") 42 42 { 43 43 } -
code/branches/gui/src/orxonox/gamestates/GSGUI.h
r1688 r1689 36 36 namespace orxonox 37 37 { 38 class _OrxonoxExport GSGUI : public GameState Typed<GSGraphics>38 class _OrxonoxExport GSGUI : public GameState<GSGraphics> 39 39 { 40 40 public: -
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r1688 r1689 57 57 { 58 58 GSGraphics::GSGraphics() 59 : GameState Typed<GSRoot>("graphics")59 : GameState<GSRoot>("graphics") 60 60 , ogreRoot_(0) 61 61 , inputManager_(0) -
code/branches/gui/src/orxonox/gamestates/GSGraphics.h
r1688 r1689 39 39 namespace orxonox 40 40 { 41 class _OrxonoxExport GSGraphics : public GameState Typed<GSRoot>, public OrxonoxClass, public Ogre::WindowEventListener41 class _OrxonoxExport GSGraphics : public GameState<GSRoot>, public OrxonoxClass, public Ogre::WindowEventListener 42 42 { 43 43 friend class ClassIdentifier<GSGraphics>; -
code/branches/gui/src/orxonox/gamestates/GSIOConsole.cc
r1688 r1689 42 42 { 43 43 GSIOConsole::GSIOConsole() 44 : GameState Typed<GSRoot>("ioConsole")44 : GameState<GSRoot>("ioConsole") 45 45 { 46 46 } -
code/branches/gui/src/orxonox/gamestates/GSIOConsole.h
r1688 r1689 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport GSIOConsole : public GameState Typed<GSRoot>39 class _OrxonoxExport GSIOConsole : public GameState<GSRoot> 40 40 { 41 41 public: -
code/branches/gui/src/orxonox/gamestates/GSLevel.cc
r1688 r1689 45 45 { 46 46 GSLevel::GSLevel(const std::string& name) 47 : GameState Typed<GSGraphics>(name)47 : GameState<GSGraphics>(name) 48 48 , timeFactor_(1.0f) 49 49 , sceneManager_(0) -
code/branches/gui/src/orxonox/gamestates/GSLevel.h
r1688 r1689 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport GSLevel : public GameState Typed<GSGraphics>39 class _OrxonoxExport GSLevel : public GameState<GSGraphics> 40 40 { 41 41 public: -
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r1686 r1689 91 91 } 92 92 93 //SetCommandLineArgument(asdf1, "haha").setShortcut("a").setUsageInformation("1|2|3");94 //SetCommandLineArgument(asdf2, 3).setShortcut("b");95 //SetCommandLineArgument(asdf3, Vector2()).setShortcut("c");96 //SetCommandLineArgument(adsf4, 1.4f).setShortcut("d");97 //SetCommandLineSwitch(showGraphics).setShortcut("g");98 99 void GSRoot::feedCommandLine(int argc, char** argv)100 {101 std::vector<std::string> args;102 for (int i = 1; i < argc; ++i)103 args.push_back(argv[i]);104 105 //std::string line = "-a --asdf3 (3,3) -d -5 -b - 5.4";106 //SubString tokens(line, " ", " ", false, 92, false, 34, true, 40, 41, false, 0);107 108 try109 {110 orxonox::CommandLine::parse(args);111 //CommandLine::parse(tokens.getAllStrings());112 }113 catch (orxonox::ArgumentException& ex)114 {115 COUT(1) << ex.what() << std::endl;116 COUT(0) << "Usage:" << std::endl << "orxonox " << CommandLine::getUsageInformation() << std::endl;117 }118 }119 120 93 void GSRoot::enter() 121 94 { … … 165 138 166 139 // add console commands 167 FunctorMember01<GameState , const std::string&>* functor2 = createFunctor(&GameState::requestState);140 FunctorMember01<GameStateBase, const std::string&>* functor2 = createFunctor(&GameStateBase::requestState); 168 141 functor2->setObject(this); 169 142 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor2, "selectGameState")); -
code/branches/gui/src/orxonox/gamestates/GSRoot.h
r1688 r1689 44 44 ~GSRoot(); 45 45 46 void feedCommandLine(int argc, char** argv);47 48 46 void exitGame() 49 47 { requestState("root"); }
Note: See TracChangeset
for help on using the changeset viewer.