Changeset 729 for code/branches/FICN/src/orxonox
- Timestamp:
- Dec 30, 2007, 9:48:52 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox
- Files:
-
- 42 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/GraphicsEngine.h
r715 r729 13 13 #include <OgreSceneManager.h> 14 14 15 #include "OrxonoxPrereqs.h" 16 15 17 16 18 namespace orxonox { … … 19 21 * graphics engine manager class 20 22 */ 21 class GraphicsEngine {23 class _OrxonoxExport GraphicsEngine { 22 24 public: 23 25 GraphicsEngine(); -
code/branches/FICN/src/orxonox/InputManager.h
r673 r729 16 16 #include <OgreRenderWindow.h> 17 17 18 class InputManager : public OIS::KeyListener, public OIS::MouseListener, public OIS::JoyStickListener { 18 #include "OrxonoxPrereqs.h" 19 20 class _OrxonoxExport InputManager : public OIS::KeyListener, public OIS::MouseListener, public OIS::JoyStickListener { 19 21 public: 20 22 virtual ~InputManager( void ); -
code/branches/FICN/src/orxonox/Orxonox.cc
r715 r729 71 71 #include "hud/HUD.h" 72 72 #include "objects/weapon_system/BulletManager.h" 73 74 73 #include "GraphicsEngine.h" 74 75 75 #include "Orxonox.h" 76 77 76 78 77 namespace orxonox -
code/branches/FICN/src/orxonox/Orxonox.h
r717 r729 15 15 #include "OrxonoxPrereqs.h" 16 16 #include "loader/LoaderPrereqs.h" 17 17 18 #include "GraphicsEngine.h" 18 19 … … 29 30 }; 30 31 31 class Orxonox32 class _OrxonoxExport Orxonox 32 33 { 33 34 public: -
code/branches/FICN/src/orxonox/OrxonoxPlatform.h
r708 r729 116 116 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 117 117 118 // If we're not including this from a client build, specify that the stuff119 // should get exported. Otherwise, import it.120 # if defined( ORXONOX_STATIC_LIB )121 // don't use exports/imports when building statically122 # define _OrxonoxExport123 # define _OrxonoxPrivate124 # else125 # if defined( ORXONOX_NONCLIENT_BUILD )126 # define _OrxonoxExport __declspec( dllexport )127 # else128 # if defined( __MINGW32__ )129 # define _OrxonoxExport130 # else131 # define _OrxonoxExport __declspec( dllimport )132 # endif133 # endif134 # define _OrxonoxPrivate135 # endif136 118 // Win32 compilers use _DEBUG for specifying debug builds. 137 119 # ifdef _DEBUG … … 162 144 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_LINUX || ORXONOX_PLATFORM == ORXONOX_PLATFORM_APPLE 163 145 164 // Enable GCC symbol visibility165 # if defined( ORXONOX_GCC_VISIBILITY )166 # define _OrxonoxExport __attribute__ ((visibility("default")))167 # define _OrxonoxPrivate __attribute__ ((visibility("hidden")))168 # else169 # define _OrxonoxExport170 # define _OrxonoxPrivate171 # endif172 146 173 147 // A quick define to overcome different names for the same function -
code/branches/FICN/src/orxonox/OrxonoxPrereqs.h
r708 r729 36 36 #include "OrxonoxPlatform.h" 37 37 38 //----------------------------------------------------------------------- 39 // Shared library settings 40 //----------------------------------------------------------------------- 41 #if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !defined( ORXONOX_STATIC_BUILD ) 42 # ifdef ORXONOX_SHARED_BUILD 43 # define _OrxonoxExport __declspec(dllexport) 44 # else 45 # if defined( __MINGW32__ ) 46 # define _OrxonoxExport 47 # else 48 # define _OrxonoxExport __declspec(dllimport) 49 # endif 50 # endif 51 #elif defined ( ORXONOX_GCC_VISIBILITY ) 52 # define _OrxonoxExport __attribute__ ((visibility("default"))) 53 #else 54 # define _OrxonoxExport 55 #endif 56 57 //----------------------------------------------------------------------- 58 // Forward declarations 59 //----------------------------------------------------------------------- 60 38 61 // classes that have not yet been put into a namespace 39 62 class InputManager; … … 56 79 namespace orxonox { 57 80 class Ambient; 58 class BaseEntity;59 81 class BaseObject; 60 82 class Camera; 61 class Entity;62 83 class GraphicsEngine; 63 84 class Mesh; … … 66 87 class OrxListener; 67 88 class Orxonox; 68 class SceneNode;69 89 class Skybox; 70 90 class SpaceShip; 71 class SpaceshipSteeringObject;72 91 class Tickable; 73 92 class TickFrameListener; -
code/branches/FICN/src/orxonox/SpaceshipSteering.h
r708 r729 2 2 #define _SpaceShipSteering_H__ 3 3 4 #include "OgrePrerequisites.h" 4 #include <OgrePrerequisites.h> 5 6 #include "OrxonoxPrereqs.h" 5 7 6 8 namespace orxonox 7 9 { 8 class SpaceshipSteering10 class _OrxonoxExport SpaceshipSteering 9 11 { 10 12 public: -
code/branches/FICN/src/orxonox/core/CoreIncludes.h
r708 r729 88 88 89 89 /** 90 @brief Exports the necessary templates in order to make them available to all libraries. 91 @param ClassName The name of the Class 92 @param LibraryName The name of the Library 93 */ 94 #define ExportClass(ClassName, LibraryName) \ 95 template class _##LibraryName##Export orxonox::ClassIdentifier<ClassName>; \ 96 template class _##LibraryName##Export orxonox::ObjectList<ClassName>; \ 97 template class _##LibraryName##Export orxonox::ClassFactory<ClassName> 98 99 /** 100 @brief Exports the necessary templates in order to make them available to all libraries. 101 @param ClassName The name of the Class 102 @param LibraryName The name of the Library 103 */ 104 #define ExportAbstractClass(ClassName, LibraryName) \ 105 template class _##LibraryName##Export orxonox::ClassIdentifier<ClassName>; \ 106 template class _##LibraryName##Export orxonox::ObjectList<ClassName> 107 108 /** 90 109 @brief Returns the Identifier of the given class. 91 110 @param ClassName The name of the class -
code/branches/FICN/src/orxonox/core/DebugLevel.cc
r728 r729 31 31 */ 32 32 33 #include "CoreIncludes.h"34 33 #include "DebugLevel.h" 35 34 -
code/branches/FICN/src/orxonox/core/DebugLevel.h
r708 r729 41 41 #include "OrxonoxClass.h" 42 42 #include "OutputHandler.h" 43 #include "CoreIncludes.h" 43 44 44 45 namespace orxonox … … 62 63 ConfigValueContainer* softDebugLevelContainer_; //!< The config value container for the debug level 63 64 }; 65 ExportAbstractClass(DebugLevel, Core); 64 66 } 65 67 -
code/branches/FICN/src/orxonox/core/Identifier.h
r723 r729 54 54 #include <map> 55 55 #include <string> 56 #include <utility> 56 57 57 58 #include "CorePrereqs.h" -
code/branches/FICN/src/orxonox/core/Language.cc
r728 r729 245 245 if (lineString.compare("") != 0) 246 246 { 247 unsigned int pos = lineString.find('=');247 unsigned int pos = (unsigned int)lineString.find('='); 248 248 249 249 // Check if the length is at least 3 and if there's an entry before and behind the = … … 288 288 if (lineString.compare("") != 0) 289 289 { 290 unsigned int pos = lineString.find('=');290 unsigned int pos = (unsigned int)lineString.find('='); 291 291 292 292 // Check if the length is at least 3 and if there's an entry before and behind the = -
code/branches/FICN/src/orxonox/core/Language.h
r728 r729 82 82 bool bTranslationSet_; //!< True if the translation was set 83 83 }; 84 template class _CoreExport orxonox::ClassIdentifier<LanguageEntry>; 85 template class _CoreExport orxonox::ObjectList<LanguageEntry>; 84 86 85 87 //! The Language class manges the language files and entries and stores the LanguageEntry objects in a map. … … 108 110 std::map<std::string, LanguageEntry*> languageEntries_; //!< A map to store all LanguageEntry objects and their name 109 111 }; 112 template class _CoreExport orxonox::ClassIdentifier<Language>; 113 template class _CoreExport orxonox::ObjectList<Language>; 110 114 } 111 115 -
code/branches/FICN/src/orxonox/core/ObjectList.h
r698 r729 39 39 40 40 #include "CorePrereqs.h" 41 #include "Iterator.h" 41 42 42 43 namespace orxonox -
code/branches/FICN/src/orxonox/core/OrxonoxClass.h
r715 r729 41 41 #include "CorePrereqs.h" 42 42 #include "MetaObjectList.h" 43 #include "I dentifier.h"43 #include "Iterator.h" 44 44 45 45 namespace orxonox … … 158 158 bool bVisible_; //!< True = the object is visible 159 159 }; 160 template class _CoreExport orxonox::ClassIdentifier<OrxonoxClass>; 161 template class _CoreExport orxonox::ObjectList<OrxonoxClass>; 160 162 } 161 163 -
code/branches/FICN/src/orxonox/hud/HUD.h
r715 r729 38 38 namespace orxonox 39 39 { 40 class HUD40 class _OrxonoxExport HUD 41 41 { 42 42 private: -
code/branches/FICN/src/orxonox/objects/Ambient.cc
r716 r729 43 43 namespace orxonox 44 44 { 45 // create a template instantiations 46 //template class _OrxonoxExport ClassIdentifier<Ambient>; 47 45 48 CreateFactory(Ambient); 46 49 -
code/branches/FICN/src/orxonox/objects/Ambient.h
r708 r729 8 8 namespace orxonox 9 9 { 10 class Ambient : public BaseObject10 class _OrxonoxExport Ambient : public BaseObject 11 11 { 12 12 public: … … 21 21 22 22 }; 23 ExportClass(Ambient, Orxonox); 23 24 } 24 25 -
code/branches/FICN/src/orxonox/objects/BaseObject.cc
r708 r729 32 32 33 33 #include "tinyxml/tinyxml.h" 34 #include "../core/CoreIncludes.h"35 34 36 35 #include "BaseObject.h" -
code/branches/FICN/src/orxonox/objects/BaseObject.h
r708 r729 10 10 11 11 #include "../OrxonoxPrereqs.h" 12 #include "../core/CorePrereqs.h" 12 13 13 #include "../core/ OrxonoxClass.h"14 #include "../core/CoreIncludes.h" 14 15 15 16 namespace orxonox 16 17 { 17 18 //! The BaseObject is the parent of all classes representing an instance in the game. 18 class BaseObject : virtual public OrxonoxClass19 class _OrxonoxExport BaseObject : virtual public OrxonoxClass 19 20 { 20 21 public: … … 23 24 virtual void loadParams(TiXmlElement* xmlElem); 24 25 }; 26 ExportClass(BaseObject, Orxonox); 25 27 } 26 28 -
code/branches/FICN/src/orxonox/objects/BillboardSet.h
r717 r729 13 13 namespace orxonox 14 14 { 15 class BillboardSet15 class _OrxonoxExport BillboardSet 16 16 { 17 17 public: -
code/branches/FICN/src/orxonox/objects/Camera.h
r708 r729 8 8 namespace orxonox 9 9 { 10 class Camera : public BaseObject10 class _OrxonoxExport Camera : public BaseObject 11 11 { 12 12 public: … … 21 21 22 22 }; 23 ExportClass(Camera, Orxonox); 23 24 } 24 25 -
code/branches/FICN/src/orxonox/objects/Explosion.h
r708 r729 9 9 namespace orxonox 10 10 { 11 class Explosion : public WorldEntity11 class _OrxonoxExport Explosion : public WorldEntity 12 12 { 13 13 public: … … 21 21 ParticleInterface* particle_; 22 22 }; 23 ExportClass(Explosion, Orxonox); 23 24 } 24 25 -
code/branches/FICN/src/orxonox/objects/Fighter.h
r708 r729 12 12 namespace orxonox 13 13 { 14 class Fighter : public Model, public OIS::MouseListener14 class _OrxonoxExport Fighter : public Model, public OIS::MouseListener 15 15 { 16 16 public: … … 90 90 int emitterRate_; 91 91 }; 92 ExportClass(Fighter, Orxonox); 92 93 } 93 94 -
code/branches/FICN/src/orxonox/objects/Light.h
r716 r729 12 12 namespace orxonox 13 13 { 14 class Light14 class _OrxonoxExport Light 15 15 { 16 16 public: -
code/branches/FICN/src/orxonox/objects/Mesh.h
r715 r729 10 10 namespace orxonox 11 11 { 12 class Mesh12 class _OrxonoxExport Mesh 13 13 { 14 14 public: -
code/branches/FICN/src/orxonox/objects/Model.cc
r708 r729 69 69 70 70 void Model::registerAllVariables(){ 71 registerVar(&meshSrc_, meshSrc_.length()+1, network::STRING);71 registerVar(&meshSrc_, (int)meshSrc_.length() + 1, network::STRING); 72 72 } 73 73 } -
code/branches/FICN/src/orxonox/objects/Model.h
r715 r729 12 12 { 13 13 14 class Model : public WorldEntity14 class _OrxonoxExport Model : public WorldEntity 15 15 { 16 16 public: … … 25 25 void registerAllVariables(); 26 26 }; 27 ExportClass(Model, Orxonox); 27 28 } 28 29 -
code/branches/FICN/src/orxonox/objects/NPC.h
r728 r729 16 16 namespace orxonox { 17 17 18 class NPC : public Model18 class _OrxonoxExport NPC : public Model 19 19 { 20 20 public: … … 44 44 static int const NUMELEMENTS = 9; //number of elements 45 45 }; 46 ExportClass(NPC, Orxonox); 46 47 47 48 } -
code/branches/FICN/src/orxonox/objects/Projectile.h
r708 r729 12 12 class SpaceShip; // Forward declaration 13 13 14 class Projectile : public WorldEntity14 class _OrxonoxExport Projectile : public WorldEntity 15 15 { 16 16 public: … … 28 28 Timer<Projectile> destroyTimer_; 29 29 }; 30 ExportClass(Projectile, Orxonox); 30 31 } 31 32 -
code/branches/FICN/src/orxonox/objects/Skybox.h
r708 r729 10 10 namespace orxonox 11 11 { 12 class Skybox : public BaseObject12 class _OrxonoxExport Skybox : public BaseObject 13 13 { 14 14 public: … … 23 23 24 24 }; 25 ExportClass(Skybox, Orxonox); 25 26 } 26 27 -
code/branches/FICN/src/orxonox/objects/SpaceShip.h
r708 r729 16 16 class ParticleInterface; // Forward declaration 17 17 18 class SpaceShip : public Model, public OIS::MouseListener18 class _OrxonoxExport SpaceShip : public Model, public OIS::MouseListener 19 19 { 20 20 public: … … 43 43 bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id); 44 44 bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id); 45 46 void doNothing() { 47 int a = 0; 48 } 45 49 46 50 … … 125 129 int emitterRate_; 126 130 }; 131 ExportClass(SpaceShip, Orxonox); 127 132 } 128 133 -
code/branches/FICN/src/orxonox/objects/Tickable.h
r708 r729 52 52 53 53 //! The Tickable interface provides a tick(dt) function, that gets called every frame. 54 class Tickable : virtual public OrxonoxClass54 class _OrxonoxExport Tickable : virtual public OrxonoxClass 55 55 { 56 56 public: … … 67 67 Tickable() { RegisterRootObject(Tickable); } 68 68 }; 69 ExportAbstractClass(Tickable, Orxonox); 69 70 70 71 //! The TickFrameListener calls the tick(dt) function of all Tickables every frame. 71 class TickFrameListener : public Ogre::FrameListener72 class _OrxonoxExport TickFrameListener : public Ogre::FrameListener 72 73 { 73 74 private: -
code/branches/FICN/src/orxonox/objects/Timer.h
r708 r729 67 67 { 68 68 //! TimerBase is the parent of the Timer class. 69 class TimerBase : public OrxonoxClass69 class _OrxonoxExport TimerBase : public OrxonoxClass 70 70 { 71 71 friend class TimerFrameListener; … … 104 104 float time_; //!< Internal variable, counting the time till the next function-call 105 105 }; 106 ExportAbstractClass(TimerBase, Orxonox); 106 107 107 108 //! The Timer is a callback-object, calling a given function after a given time-interval. … … 157 158 T* object_; 158 159 }; 160 ExportAbstractClass(Timer<BaseObject>, Orxonox); 159 161 160 162 //! The TimerFrameListener manages all Timers in the game. -
code/branches/FICN/src/orxonox/objects/WorldEntity.h
r716 r729 17 17 namespace orxonox 18 18 { 19 class WorldEntity : public BaseObject, public Tickable, public network::Synchronisable19 class _OrxonoxExport WorldEntity : public BaseObject, public Tickable, public network::Synchronisable 20 20 { 21 21 public: … … 147 147 bool bStatic_; 148 148 }; 149 ExportClass(WorldEntity, Orxonox); 149 150 } 150 151 -
code/branches/FICN/src/orxonox/objects/weapon_system/AmmunitionDump.h
r715 r729 42 42 43 43 namespace orxonox { 44 class AmmunitionDump : public BaseObject, public network::Synchronisable44 class _OrxonoxExport AmmunitionDump : public BaseObject, public network::Synchronisable 45 45 { 46 46 public: … … 66 66 int *capacity_; 67 67 }; 68 ExportClass(AmmunitionDump, Orxonox); 68 69 } 69 70 -
code/branches/FICN/src/orxonox/objects/weapon_system/BarrelGun.h
r708 r729 38 38 39 39 namespace orxonox { 40 class BarrelGun : public BaseWeapon40 class _OrxonoxExport BarrelGun : public BaseWeapon 41 41 { 42 42 public: … … 60 60 61 61 }; 62 ExportClass(BarrelGun, Orxonox); 62 63 } 63 64 -
code/branches/FICN/src/orxonox/objects/weapon_system/BaseWeapon.h
r708 r729 38 38 39 39 namespace orxonox { 40 class BaseWeapon : public Model40 class _OrxonoxExport BaseWeapon : public Model 41 41 { 42 42 public: … … 122 122 123 123 }; 124 ExportAbstractClass(BaseWeapon, Orxonox); 124 125 } 125 126 -
code/branches/FICN/src/orxonox/objects/weapon_system/Bullet.h
r708 r729 37 37 38 38 namespace orxonox { 39 class Bullet : public Model39 class _OrxonoxExport Bullet : public Model 40 40 { 41 41 public: … … 47 47 inline virtual void loadParams(TiXmlElement* xmlElem) { Model::loadParams(xmlElem); }; 48 48 }; 49 ExportClass(Bullet, Orxonox); 49 50 } 50 51 -
code/branches/FICN/src/orxonox/objects/weapon_system/BulletManager.h
r715 r729 38 38 #include "network/Synchronisable.h" 39 39 #include "tinyxml/tinyxml.h" 40 //#include "../core/CoreIncludes.h"40 #include "../../core/CoreIncludes.h" 41 41 #include "../BaseObject.h" 42 42 #include "../Tickable.h" 43 43 44 44 namespace orxonox { 45 class BulletManager : public BaseObject, public network::Synchronisable, public Tickable45 class _OrxonoxExport BulletManager : public BaseObject, public network::Synchronisable, public Tickable 46 46 { 47 47 public: … … 67 67 int bulletsIndex_; 68 68 }; 69 ExportClass(BulletManager, Orxonox); 69 70 } 70 71 -
code/branches/FICN/src/orxonox/objects/weapon_system/WeaponStation.h
r708 r729 36 36 37 37 namespace orxonox { 38 class WeaponStation38 class _OrxonoxExport WeaponStation 39 39 { 40 40 public: -
code/branches/FICN/src/orxonox/particle/ParticleInterface.h
r728 r729 21 21 { 22 22 23 class ParticleInterface23 class _OrxonoxExport ParticleInterface 24 24 { 25 25 public:
Note: See TracChangeset
for help on using the changeset viewer.