/* * ORXONOX - the hottest 3D action shooter ever to exist * > www.orxonox.net < * * * License notice: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: * Reto Grieder * Co-authors: * ... * */ /** @file @brief Shared library macros, enums, constants and forward declarations for the core library */ #ifndef _CorePrereqs_H__ #define _CorePrereqs_H__ #include "OrxonoxConfig.h" //----------------------------------------------------------------------- // Shared library settings //----------------------------------------------------------------------- #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD ) # ifdef CORE_SHARED_BUILD # define _CoreExport __declspec(dllexport) # else # if defined( __MINGW32__ ) # define _CoreExport # else # define _CoreExport __declspec(dllimport) # endif # endif #elif defined ( ORXONOX_GCC_VISIBILITY ) # define _CoreExport __attribute__ ((visibility("default"))) #else # define _CoreExport #endif //----------------------------------------------------------------------- // Constants //----------------------------------------------------------------------- namespace orxonox { static const uint32_t OBJECTID_UNKNOWN = static_cast(-1); } //----------------------------------------------------------------------- // Enums //----------------------------------------------------------------------- namespace orxonox { namespace XMLPort { enum Mode { NOP, LoadObject, SaveObject, ExpandObject }; } namespace KeybindMode { enum Value { OnPress, OnHold, OnRelease, None }; }; } //----------------------------------------------------------------------- // Forward declarations //----------------------------------------------------------------------- namespace orxonox { typedef std::string LanguageEntryLabel; class ArgumentCompleter; class ArgumentCompletionListElement; class BaseObject; template class ClassFactory; template class ClassIdentifier; class ClassTreeMask; class ClassTreeMaskIterator; class ClassTreeMaskNode; class ClassTreeMaskObjectIterator; class CommandEvaluation; class CommandLine; class CommandLineArgument; class ConfigFile; class ConfigFileEntry; class ConfigFileEntryComment; class ConfigFileEntryValue; class ConfigFileManager; class ConfigFileSection; struct ConfigFileType; class ConfigValueContainer; class ConsoleCommand; class Core; class DynLib; class DynLibManager; struct Event; class EventState; class Executor; template class ExecutorMember; class ExecutorStatic; class Factory; class Functor; template class FunctorMember; class FunctorStatic; class Game; class GameState; struct GameStateInfo; struct GameStateTreeNode; class GraphicsManager; class GUIManager; class Identifier; class IRC; template class Iterator; class Language; class LuaState; class MemoryArchive; class MemoryArchiveFactory; class MetaObjectList; class MetaObjectListElement; class Namespace; class NamespaceNode; template class ObjectList; class ObjectListBase; class ObjectListBaseElement; template class ObjectListElement; template class ObjectListIterator; class OgreWindowEventListener; class OrxonoxClass; class PathConfig; struct ResourceInfo; class Shell; class ShellListener; template class SmartPtr; template class SubclassIdentifier; class TclBind; struct TclInterpreterBundle; template class TclThreadList; class TclThreadManager; class Template; class Thread; class ThreadPool; template class WeakPtr; class WindowEventListener; class XMLFile; class XMLNameListener; template class XMLPortClassObjectContainer; template class XMLPortClassParamContainer; class XMLPortObjectContainer; class XMLPortParamContainer; // Input class BaseCommand; class BufferedParamCommand; class Button; class HalfAxis; class InputBuffer; class InputDevice; template class InputDeviceTemplated; class InputHandler; class InputManager; class InputState; struct InputStatePriority; class JoyStickQuantityListener; class JoyStick; class KeyBinder; class KeyBinderManager; class Keyboard; class KeyDetector; class KeyEvent; class Mouse; class ParamCommand; class SimpleCommand; } // CppTcl namespace Tcl { class interpreter; class object; } // Boost namespace boost { namespace filesystem { struct path_traits; template class basic_path; typedef basic_path path; } class thread; class mutex; class shared_mutex; class condition_variable; } // Ogre namespace Ogre { class DataStream; template class SharedPtr; typedef SharedPtr DataStreamPtr; } namespace orxonox { // Import the Ogre::DataStream using Ogre::DataStream; using Ogre::DataStreamPtr; } // CEGUI namespace CEGUI { class DefaultLogger; class Logger; class LuaScriptModule; class OgreCEGUIRenderer; class OgreCEGUIResourceProvider; class OgreCEGUITexture; } // Lua struct lua_State; // TinyXML and TinyXML++ class TiXmlString; class TiXmlOutStream; class TiXmlNode; class TiXmlHandle; class TiXmlDocument; class TiXmlElement; class TiXmlComment; class TiXmlUnknown; class TiXmlAttribute; class TiXmlText; class TiXmlDeclaration; class TiXmlParsingData; namespace ticpp { class Document; class Element; class Declaration; class StylesheetReference; class Text; class Comment; class Attribute; } namespace orxonox { using ticpp::Element; } #endif /* _CorePrereqs_H__ */