Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gui/src/core/CorePrereqs.h @ 2966

Last change on this file since 2966 was 2844, checked in by rgrieder, 16 years ago

Implemented new GameState concept. It doesn't differ that much from the old one, but there's still lots of changes.
The most important change is that one GameState can occur multiple times in the hierarchy.

Short log:

  • No RootGameState anymore. Simply the highest is root.
  • Game::requestGameState(name) can refer to the parent, grandparent, great-grandparent, etc. or one of the children.
  • Requested states are saved. So if you select "level", the next request (even right after the call) will be relative to "level"
  • Game::popState() will simply unload the current one
  • Re added Main.cc again because Game as well as GameState have been moved to the core
  • Adapted all GameStates to the new system

Things should already work, except for network support because standalone only works with a little hack.
We can now start creating a better hierarchy.

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30  @file
31  @brief Contains all the necessary forward declarations for all classes and structs.
32*/
33
34#ifndef _CorePrereqs_H__
35#define _CorePrereqs_H__
36
37#include "OrxonoxConfig.h"
38
39#include <string>
40
41//-----------------------------------------------------------------------
42// Shared library settings
43//-----------------------------------------------------------------------
44#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
45#  ifdef CORE_SHARED_BUILD
46#    define _CoreExport __declspec(dllexport)
47#  else
48#    if defined( __MINGW32__ )
49#      define _CoreExport
50#    else
51#      define _CoreExport __declspec(dllimport)
52#    endif
53#  endif
54#elif defined ( ORXONOX_GCC_VISIBILITY )
55#  define _CoreExport  __attribute__ ((visibility("default")))
56#else
57#  define _CoreExport
58#endif
59
60
61//-----------------------------------------------------------------------
62// Forward declarations
63//-----------------------------------------------------------------------
64namespace orxonox
65{
66  namespace XMLPort
67  {
68    enum Mode
69    {
70      LoadObject,
71      SaveObject,
72      ExpandObject
73    };
74  }
75
76  namespace KeybindMode
77  {
78    enum Enum
79    {
80      OnPress,
81      OnHold,
82      OnRelease,
83      None
84    };
85  };
86
87  typedef std::string LanguageEntryLabel;
88
89  class ArgumentCompleter;
90  class ArgumentCompletionListElement;
91  class BaseFactory;
92  class BaseMetaObjectListElement;
93  class BaseObject;
94  template <class T>
95  class ClassFactory;
96  template <class T>
97  class ClassIdentifier;
98  class ClassTreeMask;
99  class ClassTreeMaskIterator;
100  class ClassTreeMaskNode;
101  class ClassTreeMaskObjectIterator;
102  class Clock;
103  class CommandEvaluation;
104  class CommandExecutor;
105  class CommandLine;
106  class CommandLineArgument;
107  class ConfigFile;
108  class ConfigFileEntry;
109  class ConfigFileEntryComment;
110  class ConfigFileEntryValue;
111  class ConfigFileManager;
112  class ConfigFileSection;
113  class ConfigValueContainer;
114  class ConsoleCommand;
115  class Core;
116  struct Event;
117  class EventContainer;
118  class Executor;
119  template <class T>
120  class ExecutorMember;
121  class ExecutorStatic;
122  class Factory;
123  class Functor;
124  template <class T>
125  class FunctorMember;
126  class FunctorStatic;
127  class Identifier;
128  class IRC;
129  template <class T>
130  class Iterator;
131  class IteratorBase;
132  class Language;
133  class LanguageEntry;
134  class Loader;
135  class LuaBind;
136  class MetaObjectList;
137  class MetaObjectListElement;
138  class Namespace;
139  class NamespaceNode;
140  template <class T>
141  class ObjectList;
142  class ObjectListBase;
143  class ObjectListBaseElement;
144  template <class T>
145  class ObjectListElement;
146  template <class T>
147  class ObjectListIterator;
148  class OrxonoxClass;
149  class Shell;
150  class ShellListener;
151  template <class T>
152  class SubclassIdentifier;
153  class TclBind;
154  struct TclInterpreterBundle;
155  class TclThreadManager;
156  class Template;
157  class Tickable;
158  class XMLFile;
159  class XMLNameListener;
160  template <class T, class O>
161  class XMLPortClassObjectContainer;
162  template <class T>
163  class XMLPortClassParamContainer;
164  class XMLPortObjectContainer;
165  class XMLPortParamContainer;
166
167  // game states
168  class Game;
169  class GameState;
170  struct GameStateTreeNode;
171
172  // input
173  class BaseCommand;
174  class BufferedParamCommand;
175  class Button;
176  class CalibratorCallback;
177  class ExtendedInputState;
178  class HalfAxis;
179  class InputBuffer;
180  class InputManager;
181  class InputState;
182  class JoyStickHandler;
183  class MouseHandler;
184  class KeyBinder;
185  class KeyDetector;
186  class KeyHandler;
187  class ParamCommand;
188  class SimpleCommand;
189  class SimpleInputState;
190}
191
192#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.