Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/modularships/src/libraries/core/CorePrereqs.h @ 10144

Last change on this file since 10144 was 9978, checked in by landauf, 11 years ago

added new keybind mode 'OnPressAndRelease' which triggers both when a button is pressed and when it's released.
pressed buttons send the value '1' to the bound console command, while released buttons send the value '0'.

  • Property svn:eol-style set to native
File size: 8.5 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
32    Shared library macros, enums, constants and forward declarations for the core library
33*/
34
35#ifndef _CorePrereqs_H__
36#define _CorePrereqs_H__
37
38#include "OrxonoxConfig.h"
39#include <boost/version.hpp>
40
41//-----------------------------------------------------------------------
42// Shared library settings
43//-----------------------------------------------------------------------
44
45#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
46#  ifdef CORE_SHARED_BUILD
47#    define _CoreExport __declspec(dllexport)
48#  else
49#    if defined( __MINGW32__ )
50#      define _CoreExport
51#    else
52#      define _CoreExport __declspec(dllimport)
53#    endif
54#  endif
55#  define _CorePrivate
56#elif defined (ORXONOX_GCC_VISIBILITY)
57#  define _CoreExport  __attribute__ ((visibility("default")))
58#  define _CorePrivate __attribute__ ((visibility("hidden")))
59#else
60#  define _CoreExport
61#  define _CorePrivate
62#endif
63
64//-----------------------------------------------------------------------
65// Constants
66//-----------------------------------------------------------------------
67
68namespace orxonox
69{
70    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
71}
72
73//-----------------------------------------------------------------------
74// Enums
75//-----------------------------------------------------------------------
76
77namespace orxonox
78{
79    namespace XMLPort
80    {
81        enum Mode
82        {
83            NOP,
84            LoadObject,
85            SaveObject,
86            ExpandObject
87        };
88    }
89
90    namespace ConfigFileType
91    {
92        enum Value
93        {
94            Settings,
95            JoyStickCalibration,
96            CommandHistory
97            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
98        };
99    }
100
101    namespace KeybindMode
102    {
103        enum Value
104        {
105            OnPress,
106            OnHold,
107            OnRelease,
108            OnPressAndRelease,
109            None
110        };
111    };
112}
113
114//-----------------------------------------------------------------------
115// Forward declarations
116//-----------------------------------------------------------------------
117
118namespace orxonox
119{
120    typedef std::string LanguageEntryLabel;
121
122    template <class T, class U>
123    T orxonox_cast(U*);
124
125    class BaseObject;
126    template <class T>
127    class ClassFactory;
128    template <class T>
129    class ClassFactoryWithContext;
130    template <class T>
131    class ClassIdentifier;
132    class ClassTreeMask;
133    class ClassTreeMaskIterator;
134    class ClassTreeMaskNode;
135    class ClassTreeMaskObjectIterator;
136    class CommandLineParser;
137    class CommandLineArgument;
138    class ConfigFile;
139    class ConfigFileEntry;
140    class ConfigFileEntryComment;
141    class ConfigFileEntryValue;
142    class ConfigFileManager;
143    class ConfigFileSection;
144    class Configurable;
145    class ConfigValueContainer;
146    class Context;
147    class Core;
148    class Destroyable;
149    class DestructionListener;
150    class DynLib;
151    class DynLibManager;
152    struct Event;
153    class EventState;
154    class Factory;
155    class Game;
156    class GameState;
157    struct GameStateInfo;
158    struct GameStateTreeNode;
159    class GraphicsManager;
160    class GUIManager;
161    class Identifiable;
162    class Identifier;
163    template <class T>
164    class Iterator;
165    class Language;
166    class Listable;
167    class LuaFunctor;
168    class LuaState;
169    class MemoryArchive;
170    class MemoryArchiveFactory;
171    class Namespace;
172    class NamespaceNode;
173    template <class T>
174    class ObjectList;
175    class ObjectListBase;
176    class ObjectListBaseElement;
177    template <class T>
178    class ObjectListElement;
179    template <class T>
180    class ObjectListIterator;
181    class OgreWindowEventListener;
182    class OrxonoxClass;
183    class OrxonoxInterface;
184    class PathConfig;
185    struct ResourceInfo;
186    class SettingsConfigFile;
187    template <class T>
188    class SmartPtr;
189    template <class T>
190    class SubclassIdentifier;
191    class Template;
192    class Thread;
193    class ThreadPool;
194    class ViewportEventListener;
195    template <class T>
196    class WeakPtr;
197    class WindowEventListener;
198    class XMLFile;
199    class XMLNameListener;
200    template <class T, class O>
201    class XMLPortClassObjectContainer;
202    template <class T>
203    class XMLPortClassParamContainer;
204    class XMLPortObjectContainer;
205    class XMLPortParamContainer;
206
207    // Command
208    class ArgumentCompleter;
209    class ArgumentCompletionListElement;
210    class CommandEvaluation;
211    class ConsoleCommand;
212    class Executor;
213    template <class T>
214    class ExecutorMember;
215    class ExecutorStatic;
216    class Functor;
217    template <class O>
218    class FunctorMember;
219    typedef FunctorMember<void> FunctorStatic;
220    template <class F, class O>
221    class FunctorPointer;
222    class IOConsole;
223    class IRC;
224    class Shell;
225    class ShellListener;
226    class TclBind;
227    struct TclInterpreterBundle;
228    template <class T>
229    class TclThreadList;
230    class TclThreadManager;
231
232    // Input
233    class BaseCommand;
234    class BufferedParamCommand;
235    class Button;
236    class HalfAxis;
237    class InputBuffer;
238    class InputDevice;
239    template <class Traits>
240    class InputDeviceTemplated;
241    class InputHandler;
242    class InputManager;
243    class InputState;
244    struct InputStatePriority;
245    class JoyStickQuantityListener;
246    class JoyStick;
247    class KeyBinder;
248    class KeyBinderManager;
249    class Keyboard;
250    class KeyDetector;
251    class KeyEvent;
252    class Mouse;
253    class ParamCommand;
254    class SimpleCommand;
255}
256
257#include "command/FunctorPtr.h"
258#include "command/ExecutorPtr.h"
259
260// CppTcl
261namespace Tcl
262{
263    class interpreter;
264    class object;
265}
266
267// Boost
268namespace boost
269{
270#if (BOOST_VERSION < 104400)
271
272    namespace filesystem
273    {
274        struct path_traits;
275        template <class String, class Traits> class basic_path;
276        typedef basic_path<std::string, path_traits> path;
277    }
278
279#elif (BOOST_VERSION < 105000)
280
281# if BOOST_FILESYSTEM_VERSION == 2
282    namespace filesystem2
283    {
284        struct path_traits;
285        template <class String, class Traits> class basic_path;
286        typedef basic_path<std::string, path_traits> path;
287    }
288    namespace filesystem
289    {
290        using filesystem2::basic_path;
291        using filesystem2::path_traits;
292        using filesystem2::path;
293    }
294# elif BOOST_FILESYSTEM_VERSION == 3
295    namespace filesystem3
296    {
297        class path;
298    }
299    namespace filesystem
300    {
301        using filesystem3::path;
302    }
303# endif
304
305#else
306
307    namespace filesystem
308    {
309        class path;
310    }
311
312#endif
313
314    class thread;
315    class mutex;
316    class shared_mutex;
317    class condition_variable;
318}
319
320// Ogre
321namespace Ogre
322{
323    class DataStream;
324    template <class T> class SharedPtr;
325    typedef SharedPtr<DataStream> DataStreamPtr;
326}
327namespace orxonox
328{
329    // Import the Ogre::DataStream
330    using Ogre::DataStream;
331    using Ogre::DataStreamPtr;
332}
333
334// CEGUI
335namespace CEGUI
336{
337    class DefaultLogger;
338    class Logger;
339    class LuaScriptModule;
340
341#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
342    class OgreCEGUIRenderer;
343    class OgreCEGUIResourceProvider;
344    class OgreCEGUITexture;
345#else
346    class OgreRenderer;
347    class OgreResourceProvider;
348    class OgreImageCodec;
349#endif
350}
351
352// Lua
353struct lua_State;
354
355// TinyXML and TinyXML++
356class TiXmlString;
357class TiXmlOutStream;
358class TiXmlNode;
359class TiXmlHandle;
360class TiXmlDocument;
361class TiXmlElement;
362class TiXmlComment;
363class TiXmlUnknown;
364class TiXmlAttribute;
365class TiXmlText;
366class TiXmlDeclaration;
367class TiXmlParsingData;
368namespace ticpp
369{
370    class Document;
371    class Element;
372    class Declaration;
373    class StylesheetReference;
374    class Text;
375    class Comment;
376    class Attribute;
377}
378namespace orxonox
379{
380    using ticpp::Element;
381}
382
383#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.