[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 | /** |
---|
[5929] | 30 | @file |
---|
| 31 | @brief |
---|
| 32 | Shared library macros, enums, constants and forward declarations for the core library |
---|
[871] | 33 | */ |
---|
[682] | 34 | |
---|
| 35 | #ifndef _CorePrereqs_H__ |
---|
| 36 | #define _CorePrereqs_H__ |
---|
| 37 | |
---|
[2710] | 38 | #include "OrxonoxConfig.h" |
---|
[1062] | 39 | |
---|
[728] | 40 | //----------------------------------------------------------------------- |
---|
| 41 | // Shared library settings |
---|
| 42 | //----------------------------------------------------------------------- |
---|
[5929] | 43 | |
---|
[2710] | 44 | #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD ) |
---|
[728] | 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 |
---|
[682] | 59 | |
---|
[5929] | 60 | //----------------------------------------------------------------------- |
---|
| 61 | // Constants |
---|
| 62 | //----------------------------------------------------------------------- |
---|
[728] | 63 | |
---|
[5929] | 64 | namespace orxonox |
---|
| 65 | { |
---|
| 66 | static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1); |
---|
| 67 | } |
---|
| 68 | |
---|
[682] | 69 | //----------------------------------------------------------------------- |
---|
[5929] | 70 | // Enums |
---|
[728] | 71 | //----------------------------------------------------------------------- |
---|
[5929] | 72 | |
---|
[728] | 73 | namespace orxonox |
---|
[684] | 74 | { |
---|
[3196] | 75 | namespace XMLPort |
---|
[1052] | 76 | { |
---|
[3196] | 77 | enum Mode |
---|
| 78 | { |
---|
[5929] | 79 | NOP, |
---|
[3196] | 80 | LoadObject, |
---|
| 81 | SaveObject, |
---|
| 82 | ExpandObject |
---|
| 83 | }; |
---|
| 84 | } |
---|
[1052] | 85 | |
---|
[6432] | 86 | namespace ConfigFileType |
---|
| 87 | { |
---|
| 88 | enum Value |
---|
| 89 | { |
---|
| 90 | Settings, |
---|
| 91 | JoyStickCalibration, |
---|
| 92 | CommandHistory |
---|
| 93 | // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here! |
---|
| 94 | }; |
---|
| 95 | } |
---|
| 96 | |
---|
[3196] | 97 | namespace KeybindMode |
---|
[1502] | 98 | { |
---|
[3280] | 99 | enum Value |
---|
[3196] | 100 | { |
---|
| 101 | OnPress, |
---|
| 102 | OnHold, |
---|
| 103 | OnRelease, |
---|
| 104 | None |
---|
| 105 | }; |
---|
[1502] | 106 | }; |
---|
[5929] | 107 | } |
---|
[1349] | 108 | |
---|
[5929] | 109 | //----------------------------------------------------------------------- |
---|
| 110 | // Forward declarations |
---|
| 111 | //----------------------------------------------------------------------- |
---|
| 112 | |
---|
| 113 | namespace orxonox |
---|
| 114 | { |
---|
[3196] | 115 | typedef std::string LanguageEntryLabel; |
---|
[1024] | 116 | |
---|
[3196] | 117 | class ArgumentCompleter; |
---|
| 118 | class ArgumentCompletionListElement; |
---|
| 119 | class BaseObject; |
---|
| 120 | template <class T> |
---|
| 121 | class ClassFactory; |
---|
| 122 | template <class T> |
---|
| 123 | class ClassIdentifier; |
---|
| 124 | class ClassTreeMask; |
---|
| 125 | class ClassTreeMaskIterator; |
---|
| 126 | class ClassTreeMaskNode; |
---|
| 127 | class ClassTreeMaskObjectIterator; |
---|
| 128 | class CommandEvaluation; |
---|
[6021] | 129 | class CommandLineParser; |
---|
[3196] | 130 | class CommandLineArgument; |
---|
| 131 | class ConfigFile; |
---|
| 132 | class ConfigFileEntry; |
---|
| 133 | class ConfigFileEntryComment; |
---|
| 134 | class ConfigFileEntryValue; |
---|
| 135 | class ConfigFileManager; |
---|
| 136 | class ConfigFileSection; |
---|
| 137 | class ConfigValueContainer; |
---|
| 138 | class ConsoleCommand; |
---|
| 139 | class Core; |
---|
[5693] | 140 | class DynLib; |
---|
| 141 | class DynLibManager; |
---|
[3196] | 142 | struct Event; |
---|
[5929] | 143 | class EventState; |
---|
[3196] | 144 | class Executor; |
---|
| 145 | template <class T> |
---|
| 146 | class ExecutorMember; |
---|
| 147 | class ExecutorStatic; |
---|
| 148 | class Factory; |
---|
| 149 | class Functor; |
---|
| 150 | template <class T> |
---|
| 151 | class FunctorMember; |
---|
| 152 | class FunctorStatic; |
---|
[5929] | 153 | class Game; |
---|
| 154 | class GameState; |
---|
| 155 | struct GameStateInfo; |
---|
| 156 | struct GameStateTreeNode; |
---|
[3370] | 157 | class GraphicsManager; |
---|
| 158 | class GUIManager; |
---|
[3196] | 159 | class Identifier; |
---|
[6105] | 160 | class IOConsole; |
---|
[3196] | 161 | class IRC; |
---|
| 162 | template <class T> |
---|
| 163 | class Iterator; |
---|
| 164 | class Language; |
---|
[5695] | 165 | class LuaState; |
---|
| 166 | class MemoryArchive; |
---|
| 167 | class MemoryArchiveFactory; |
---|
[3196] | 168 | class MetaObjectList; |
---|
| 169 | class MetaObjectListElement; |
---|
| 170 | class Namespace; |
---|
| 171 | class NamespaceNode; |
---|
| 172 | template <class T> |
---|
| 173 | class ObjectList; |
---|
| 174 | class ObjectListBase; |
---|
| 175 | class ObjectListBaseElement; |
---|
| 176 | template <class T> |
---|
| 177 | class ObjectListElement; |
---|
| 178 | template <class T> |
---|
| 179 | class ObjectListIterator; |
---|
[3370] | 180 | class OgreWindowEventListener; |
---|
[3196] | 181 | class OrxonoxClass; |
---|
[5929] | 182 | class PathConfig; |
---|
[5695] | 183 | struct ResourceInfo; |
---|
[6432] | 184 | class SettingsConfigFile; |
---|
[3196] | 185 | class Shell; |
---|
| 186 | class ShellListener; |
---|
| 187 | template <class T> |
---|
[5929] | 188 | class SmartPtr; |
---|
| 189 | template <class T> |
---|
[3196] | 190 | class SubclassIdentifier; |
---|
| 191 | class TclBind; |
---|
[3318] | 192 | struct TclInterpreterBundle; |
---|
| 193 | template <class T> |
---|
| 194 | class TclThreadList; |
---|
[3196] | 195 | class TclThreadManager; |
---|
| 196 | class Template; |
---|
[5929] | 197 | class Thread; |
---|
| 198 | class ThreadPool; |
---|
| 199 | template <class T> |
---|
| 200 | class WeakPtr; |
---|
[3327] | 201 | class WindowEventListener; |
---|
[3196] | 202 | class XMLFile; |
---|
| 203 | class XMLNameListener; |
---|
| 204 | template <class T, class O> |
---|
| 205 | class XMLPortClassObjectContainer; |
---|
| 206 | template <class T> |
---|
| 207 | class XMLPortClassParamContainer; |
---|
| 208 | class XMLPortObjectContainer; |
---|
| 209 | class XMLPortParamContainer; |
---|
[1219] | 210 | |
---|
[5929] | 211 | // Input |
---|
[3196] | 212 | class BaseCommand; |
---|
| 213 | class BufferedParamCommand; |
---|
| 214 | class Button; |
---|
| 215 | class HalfAxis; |
---|
| 216 | class InputBuffer; |
---|
[3327] | 217 | class InputDevice; |
---|
| 218 | template <class Traits> |
---|
| 219 | class InputDeviceTemplated; |
---|
| 220 | class InputHandler; |
---|
[3196] | 221 | class InputManager; |
---|
| 222 | class InputState; |
---|
[5929] | 223 | struct InputStatePriority; |
---|
| 224 | class JoyStickQuantityListener; |
---|
[3327] | 225 | class JoyStick; |
---|
[5929] | 226 | class KeyBinder; |
---|
| 227 | class KeyBinderManager; |
---|
[3327] | 228 | class Keyboard; |
---|
[3196] | 229 | class KeyDetector; |
---|
[5929] | 230 | class KeyEvent; |
---|
| 231 | class Mouse; |
---|
[3196] | 232 | class ParamCommand; |
---|
| 233 | class SimpleCommand; |
---|
[682] | 234 | } |
---|
| 235 | |
---|
[3196] | 236 | // CppTcl |
---|
| 237 | namespace Tcl |
---|
| 238 | { |
---|
| 239 | class interpreter; |
---|
| 240 | class object; |
---|
| 241 | } |
---|
| 242 | |
---|
| 243 | // Boost |
---|
[3304] | 244 | namespace boost |
---|
[3318] | 245 | { |
---|
[3304] | 246 | namespace filesystem |
---|
| 247 | { |
---|
| 248 | struct path_traits; |
---|
| 249 | template <class String, class Traits> class basic_path; |
---|
| 250 | typedef basic_path<std::string, path_traits> path; |
---|
| 251 | } |
---|
| 252 | class thread; |
---|
| 253 | class mutex; |
---|
[3318] | 254 | class shared_mutex; |
---|
| 255 | class condition_variable; |
---|
[3304] | 256 | } |
---|
[3196] | 257 | |
---|
[5695] | 258 | // Ogre |
---|
| 259 | namespace Ogre |
---|
| 260 | { |
---|
| 261 | class DataStream; |
---|
| 262 | template <class T> class SharedPtr; |
---|
| 263 | typedef SharedPtr<DataStream> DataStreamPtr; |
---|
| 264 | } |
---|
| 265 | namespace orxonox |
---|
| 266 | { |
---|
| 267 | // Import the Ogre::DataStream |
---|
| 268 | using Ogre::DataStream; |
---|
| 269 | using Ogre::DataStreamPtr; |
---|
| 270 | } |
---|
| 271 | |
---|
[3370] | 272 | // CEGUI |
---|
| 273 | namespace CEGUI |
---|
| 274 | { |
---|
| 275 | class DefaultLogger; |
---|
| 276 | class Logger; |
---|
| 277 | class LuaScriptModule; |
---|
| 278 | |
---|
| 279 | class OgreCEGUIRenderer; |
---|
| 280 | class OgreCEGUIResourceProvider; |
---|
| 281 | class OgreCEGUITexture; |
---|
| 282 | } |
---|
| 283 | |
---|
| 284 | // Lua |
---|
| 285 | struct lua_State; |
---|
| 286 | |
---|
[3196] | 287 | // TinyXML and TinyXML++ |
---|
| 288 | class TiXmlString; |
---|
| 289 | class TiXmlOutStream; |
---|
| 290 | class TiXmlNode; |
---|
| 291 | class TiXmlHandle; |
---|
| 292 | class TiXmlDocument; |
---|
| 293 | class TiXmlElement; |
---|
| 294 | class TiXmlComment; |
---|
| 295 | class TiXmlUnknown; |
---|
| 296 | class TiXmlAttribute; |
---|
| 297 | class TiXmlText; |
---|
| 298 | class TiXmlDeclaration; |
---|
| 299 | class TiXmlParsingData; |
---|
| 300 | namespace ticpp |
---|
| 301 | { |
---|
| 302 | class Document; |
---|
| 303 | class Element; |
---|
| 304 | class Declaration; |
---|
| 305 | class StylesheetReference; |
---|
| 306 | class Text; |
---|
| 307 | class Comment; |
---|
| 308 | class Attribute; |
---|
| 309 | } |
---|
| 310 | namespace orxonox |
---|
| 311 | { |
---|
| 312 | using ticpp::Element; |
---|
| 313 | } |
---|
| 314 | |
---|
[682] | 315 | #endif /* _CorePrereqs_H__ */ |
---|