[682] | 1 | /* |
---|
| 2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
[1502] | 3 | * > www.orxonox.net < |
---|
[682] | 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 | /** |
---|
[1024] | 30 | @file |
---|
| 31 | @brief Contains all the necessary forward declarations for all classes and structs. |
---|
[871] | 32 | */ |
---|
[682] | 33 | |
---|
| 34 | #ifndef _CorePrereqs_H__ |
---|
| 35 | #define _CorePrereqs_H__ |
---|
| 36 | |
---|
[2710] | 37 | #include "OrxonoxConfig.h" |
---|
[1062] | 38 | |
---|
[728] | 39 | //----------------------------------------------------------------------- |
---|
| 40 | // Shared library settings |
---|
| 41 | //----------------------------------------------------------------------- |
---|
[2710] | 42 | #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD ) |
---|
[728] | 43 | # ifdef CORE_SHARED_BUILD |
---|
| 44 | # define _CoreExport __declspec(dllexport) |
---|
| 45 | # else |
---|
| 46 | # if defined( __MINGW32__ ) |
---|
| 47 | # define _CoreExport |
---|
| 48 | # else |
---|
| 49 | # define _CoreExport __declspec(dllimport) |
---|
| 50 | # endif |
---|
| 51 | # endif |
---|
| 52 | #elif defined ( ORXONOX_GCC_VISIBILITY ) |
---|
| 53 | # define _CoreExport __attribute__ ((visibility("default"))) |
---|
| 54 | #else |
---|
| 55 | # define _CoreExport |
---|
| 56 | #endif |
---|
[682] | 57 | |
---|
[728] | 58 | |
---|
[682] | 59 | //----------------------------------------------------------------------- |
---|
[728] | 60 | // Forward declarations |
---|
| 61 | //----------------------------------------------------------------------- |
---|
| 62 | namespace orxonox |
---|
[684] | 63 | { |
---|
[3196] | 64 | namespace XMLPort |
---|
[1052] | 65 | { |
---|
[3196] | 66 | enum Mode |
---|
| 67 | { |
---|
| 68 | LoadObject, |
---|
| 69 | SaveObject, |
---|
| 70 | ExpandObject |
---|
| 71 | }; |
---|
| 72 | } |
---|
[1052] | 73 | |
---|
[3196] | 74 | namespace KeybindMode |
---|
[1502] | 75 | { |
---|
[3280] | 76 | enum Value |
---|
[3196] | 77 | { |
---|
| 78 | OnPress, |
---|
| 79 | OnHold, |
---|
| 80 | OnRelease, |
---|
| 81 | None |
---|
| 82 | }; |
---|
[1502] | 83 | }; |
---|
[1349] | 84 | |
---|
[3196] | 85 | typedef std::string LanguageEntryLabel; |
---|
[1024] | 86 | |
---|
[3196] | 87 | class ArgumentCompleter; |
---|
| 88 | class ArgumentCompletionListElement; |
---|
| 89 | class BaseFactory; |
---|
| 90 | class BaseMetaObjectListElement; |
---|
| 91 | class BaseObject; |
---|
| 92 | template <class T> |
---|
| 93 | class ClassFactory; |
---|
| 94 | template <class T> |
---|
| 95 | class ClassIdentifier; |
---|
| 96 | class ClassTreeMask; |
---|
| 97 | class ClassTreeMaskIterator; |
---|
| 98 | class ClassTreeMaskNode; |
---|
| 99 | class ClassTreeMaskObjectIterator; |
---|
| 100 | class Clock; |
---|
| 101 | class CommandEvaluation; |
---|
| 102 | class CommandExecutor; |
---|
| 103 | class CommandLine; |
---|
| 104 | class CommandLineArgument; |
---|
| 105 | class ConfigFile; |
---|
| 106 | class ConfigFileEntry; |
---|
| 107 | class ConfigFileEntryComment; |
---|
| 108 | class ConfigFileEntryValue; |
---|
| 109 | class ConfigFileManager; |
---|
| 110 | class ConfigFileSection; |
---|
| 111 | class ConfigValueContainer; |
---|
| 112 | class ConsoleCommand; |
---|
| 113 | class Core; |
---|
[5693] | 114 | class DynLib; |
---|
| 115 | class DynLibManager; |
---|
[3196] | 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; |
---|
[3370] | 127 | class GraphicsManager; |
---|
| 128 | class GUIManager; |
---|
[3196] | 129 | class Identifier; |
---|
| 130 | class IRC; |
---|
| 131 | template <class T> |
---|
| 132 | class Iterator; |
---|
| 133 | class IteratorBase; |
---|
| 134 | class Language; |
---|
| 135 | class LanguageEntry; |
---|
| 136 | class Loader; |
---|
[5695] | 137 | class LuaState; |
---|
| 138 | class MemoryArchive; |
---|
| 139 | class MemoryArchiveFactory; |
---|
[3196] | 140 | class MetaObjectList; |
---|
| 141 | class MetaObjectListElement; |
---|
| 142 | class Namespace; |
---|
| 143 | class NamespaceNode; |
---|
| 144 | template <class T> |
---|
| 145 | class ObjectList; |
---|
| 146 | class ObjectListBase; |
---|
| 147 | class ObjectListBaseElement; |
---|
| 148 | template <class T> |
---|
| 149 | class ObjectListElement; |
---|
| 150 | template <class T> |
---|
| 151 | class ObjectListIterator; |
---|
[3370] | 152 | class OgreWindowEventListener; |
---|
[3196] | 153 | class OrxonoxClass; |
---|
[5695] | 154 | struct ResourceInfo; |
---|
[3196] | 155 | class Shell; |
---|
| 156 | class ShellListener; |
---|
| 157 | template <class T> |
---|
| 158 | class SubclassIdentifier; |
---|
| 159 | class TclBind; |
---|
[3318] | 160 | struct TclInterpreterBundle; |
---|
| 161 | template <class T> |
---|
| 162 | class TclThreadList; |
---|
[3196] | 163 | class TclThreadManager; |
---|
| 164 | class Template; |
---|
[3327] | 165 | class WindowEventListener; |
---|
[3196] | 166 | class XMLFile; |
---|
| 167 | class XMLNameListener; |
---|
| 168 | template <class T, class O> |
---|
| 169 | class XMLPortClassObjectContainer; |
---|
| 170 | template <class T> |
---|
| 171 | class XMLPortClassParamContainer; |
---|
| 172 | class XMLPortObjectContainer; |
---|
| 173 | class XMLPortParamContainer; |
---|
[1219] | 174 | |
---|
[3196] | 175 | // game states |
---|
| 176 | class Game; |
---|
| 177 | class GameState; |
---|
[3370] | 178 | struct GameStateInfo; |
---|
[3196] | 179 | struct GameStateTreeNode; |
---|
[1755] | 180 | |
---|
[3196] | 181 | // input |
---|
| 182 | class BaseCommand; |
---|
| 183 | class BufferedParamCommand; |
---|
| 184 | class Button; |
---|
| 185 | class CalibratorCallback; |
---|
| 186 | class HalfAxis; |
---|
| 187 | class InputBuffer; |
---|
[3327] | 188 | class InputDevice; |
---|
| 189 | template <class Traits> |
---|
| 190 | class InputDeviceTemplated; |
---|
| 191 | class InputHandler; |
---|
[3196] | 192 | class InputManager; |
---|
| 193 | class InputState; |
---|
[3327] | 194 | class JoyStick; |
---|
| 195 | class Mouse; |
---|
| 196 | class Keyboard; |
---|
[3196] | 197 | class KeyBinder; |
---|
| 198 | class KeyDetector; |
---|
| 199 | class ParamCommand; |
---|
| 200 | class SimpleCommand; |
---|
[3304] | 201 | |
---|
[3327] | 202 | |
---|
[3304] | 203 | // multithreading |
---|
| 204 | class Thread; |
---|
| 205 | class ThreadPool; |
---|
[682] | 206 | } |
---|
| 207 | |
---|
[3196] | 208 | // CppTcl |
---|
| 209 | namespace Tcl |
---|
| 210 | { |
---|
| 211 | class interpreter; |
---|
| 212 | class object; |
---|
| 213 | } |
---|
| 214 | |
---|
| 215 | // Boost |
---|
[3304] | 216 | namespace boost |
---|
[3318] | 217 | { |
---|
[3304] | 218 | namespace filesystem |
---|
| 219 | { |
---|
| 220 | struct path_traits; |
---|
| 221 | template <class String, class Traits> class basic_path; |
---|
| 222 | typedef basic_path<std::string, path_traits> path; |
---|
| 223 | } |
---|
| 224 | class thread; |
---|
| 225 | class mutex; |
---|
[3318] | 226 | class shared_mutex; |
---|
| 227 | class condition_variable; |
---|
[3304] | 228 | } |
---|
[3196] | 229 | |
---|
[5695] | 230 | // Ogre |
---|
| 231 | namespace Ogre |
---|
| 232 | { |
---|
| 233 | class DataStream; |
---|
| 234 | template <class T> class SharedPtr; |
---|
| 235 | typedef SharedPtr<DataStream> DataStreamPtr; |
---|
| 236 | } |
---|
| 237 | namespace orxonox |
---|
| 238 | { |
---|
| 239 | // Import the Ogre::DataStream |
---|
| 240 | using Ogre::DataStream; |
---|
| 241 | using Ogre::DataStreamPtr; |
---|
| 242 | } |
---|
| 243 | |
---|
[3370] | 244 | // CEGUI |
---|
| 245 | namespace CEGUI |
---|
| 246 | { |
---|
| 247 | class DefaultLogger; |
---|
| 248 | class Logger; |
---|
| 249 | class LuaScriptModule; |
---|
| 250 | |
---|
| 251 | class OgreCEGUIRenderer; |
---|
| 252 | class OgreCEGUIResourceProvider; |
---|
| 253 | class OgreCEGUITexture; |
---|
| 254 | } |
---|
| 255 | |
---|
| 256 | // Lua |
---|
| 257 | struct lua_State; |
---|
| 258 | |
---|
[3196] | 259 | // TinyXML and TinyXML++ |
---|
| 260 | class TiXmlString; |
---|
| 261 | class TiXmlOutStream; |
---|
| 262 | class TiXmlNode; |
---|
| 263 | class TiXmlHandle; |
---|
| 264 | class TiXmlDocument; |
---|
| 265 | class TiXmlElement; |
---|
| 266 | class TiXmlComment; |
---|
| 267 | class TiXmlUnknown; |
---|
| 268 | class TiXmlAttribute; |
---|
| 269 | class TiXmlText; |
---|
| 270 | class TiXmlDeclaration; |
---|
| 271 | class TiXmlParsingData; |
---|
| 272 | namespace ticpp |
---|
| 273 | { |
---|
| 274 | class Document; |
---|
| 275 | class Element; |
---|
| 276 | class Declaration; |
---|
| 277 | class StylesheetReference; |
---|
| 278 | class Text; |
---|
| 279 | class Comment; |
---|
| 280 | class Attribute; |
---|
| 281 | } |
---|
| 282 | namespace orxonox |
---|
| 283 | { |
---|
| 284 | using ticpp::Document; |
---|
| 285 | using ticpp::Element; |
---|
| 286 | using ticpp::Declaration; |
---|
| 287 | using ticpp::StylesheetReference; |
---|
| 288 | using ticpp::Text; |
---|
| 289 | using ticpp::Comment; |
---|
| 290 | using ticpp::Attribute; |
---|
| 291 | } |
---|
| 292 | |
---|
| 293 | |
---|
[682] | 294 | #endif /* _CorePrereqs_H__ */ |
---|