Changeset 5730 for code/branches/libraries2/src/modules
- Timestamp:
- Aug 31, 2009, 10:38:48 PM (15 years ago)
- Location:
- code/branches/libraries2/src/modules
- Files:
-
- 4 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libraries2/src/modules/CMakeLists.txt
r5725 r5730 21 21 22 22 ADD_SUBDIRECTORY(gamestates) 23 ADD_SUBDIRECTORY(objects) 23 24 ADD_SUBDIRECTORY(overlays) 24 25 ADD_SUBDIRECTORY(pong) -
code/branches/libraries2/src/modules/objects/Attacher.h
r5728 r5730 30 30 #define _Attacher_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <list> … … 39 39 namespace orxonox 40 40 { 41 class _O rxonoxExport Attacher : public StaticEntity, public XMLNameListener41 class _ObjectsExport Attacher : public StaticEntity, public XMLNameListener 42 42 { 43 43 public: -
code/branches/libraries2/src/modules/objects/ForceField.h
r5728 r5730 31 31 #define _ForceField_H__ 32 32 33 #include " OrxonoxPrereqs.h"33 #include "objects/ObjectsPrereqs.h" 34 34 35 35 #include "tools/interfaces/Tickable.h" 36 #include " StaticEntity.h"36 #include "objects/worldentities/StaticEntity.h" 37 37 38 38 namespace orxonox 39 39 { 40 class _O rxonoxExport ForceField : public StaticEntity, public Tickable40 class _ObjectsExport ForceField : public StaticEntity, public Tickable 41 41 { 42 42 public: -
code/branches/libraries2/src/modules/objects/Planet.cc
r5728 r5730 37 37 #include "core/XMLPort.h" 38 38 #include "objects/Scene.h" 39 #include " Camera.h"39 #include "objects/worldentities/Camera.h" 40 40 #include "CameraManager.h" 41 41 42 42 namespace orxonox 43 43 { 44 CreateFactory(Planet); 44 CreateFactory(Planet); 45 45 46 46 /** … … 60 60 if (this->isInitialized() && this->mesh_.getEntity()) 61 61 this->detachOgreObject(this->mesh_.getEntity()); 62 } 62 } 63 63 64 64 void Planet::tick(float dt) … … 107 107 billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0)); 108 108 109 this->attachOgreObject(this->billboard_.getBillboardSet()); 109 this->attachOgreObject(this->billboard_.getBillboardSet()); 110 110 this->billboard_.getBillboardSet()->setUseAccurateFacing(true); 111 111 this->setCastShadows(true); … … 148 148 { 149 149 XMLPortParam(Planet, "atmosphere", setAtmosphere, getAtmosphere, xmlelement, mode).defaultValues("planet/Atmosphere"); 150 XMLPortParam(Planet, "atmospheresize", setAtmosphereSize, getAtmosphereSize, xmlelement,mode); 151 XMLPortParam(Planet, "imagesize", setImageSize, getImageSize, xmlelement,mode); 150 XMLPortParam(Planet, "atmospheresize", setAtmosphereSize, getAtmosphereSize, xmlelement,mode); 151 XMLPortParam(Planet, "imagesize", setImageSize, getImageSize, xmlelement,mode); 152 152 XMLPortParam(Planet, "mesh", setMeshSource, getMeshSource, xmlelement, mode); 153 153 XMLPortParam(Planet, "shadow", setCastShadows, getCastShadows, xmlelement, mode).defaultValues(true); -
code/branches/libraries2/src/modules/objects/Planet.h
r5728 r5730 30 30 #define _Planet_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <string> 35 35 #include "tools/BillboardSet.h" 36 36 #include "tools/Mesh.h" 37 #include " MovableEntity.h"37 #include "objects/worldentities/MovableEntity.h" 38 38 39 39 namespace orxonox 40 40 { 41 class _O rxonoxExport Planet : public MovableEntity41 class _ObjectsExport Planet : public MovableEntity 42 42 { 43 43 public: 44 44 Planet(BaseObject* creator); 45 45 46 46 virtual ~Planet(); 47 47 48 48 void init(); 49 49 virtual void tick(float dt); 50 50 51 51 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 52 52 53 53 virtual void changedVisibility(); 54 54 55 55 inline void setMeshSource(const std::string& meshname) 56 56 { this->meshSrc_ = meshname; this->changedMesh(); } 57 57 58 58 inline const std::string& getMeshSource() const 59 59 { return this->meshSrc_; } … … 61 61 inline void setCastShadows(bool bCastShadows) 62 62 { this->bCastShadows_ = bCastShadows; this->changedShadows(); } 63 63 64 64 inline bool getCastShadows() const 65 { return this->bCastShadows_; } 66 65 { return this->bCastShadows_; } 66 67 67 inline const std::string& getMesh() const{ 68 68 return this->meshSrc_; 69 69 } 70 70 71 71 inline void setAtmosphereSize(float size){ 72 72 this->atmosphereSize = size; 73 73 } 74 74 75 75 inline float getAtmosphereSize(){ 76 76 return this->atmosphereSize; 77 77 } 78 78 79 79 inline void setAtmosphere(const std::string& atmosphere){ 80 80 this->atmosphere_ = atmosphere; 81 81 } 82 82 83 83 inline const std::string& getAtmosphere(){ 84 84 return this->atmosphere_; 85 85 } 86 86 87 87 inline void setImageSize(float size){ 88 88 this->imageSize = size; 89 89 } 90 90 91 91 inline float getImageSize(){ 92 92 return this->imageSize; … … 97 97 98 98 private: 99 99 100 100 void changedMesh(); 101 101 void changedShadows(); 102 102 103 103 std::string meshSrc_; 104 104 std::string atmosphere_; -
code/branches/libraries2/src/modules/objects/Script.h
r5728 r5730 30 30 #define _Script_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <string> … … 37 37 namespace orxonox 38 38 { 39 class _O rxonoxExport Script : public BaseObject39 class _ObjectsExport Script : public BaseObject 40 40 { 41 41 public: -
code/branches/libraries2/src/modules/objects/collisionshapes/BoxCollisionShape.h
r5728 r5730 30 30 #define _BoxCollisionShape_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include "util/Math.h" 35 #include " CollisionShape.h"35 #include "objects/collisionshapes/CollisionShape.h" 36 36 37 37 namespace orxonox 38 38 { 39 class _O rxonoxExport BoxCollisionShape : public CollisionShape39 class _ObjectsExport BoxCollisionShape : public CollisionShape 40 40 { 41 41 public: -
code/branches/libraries2/src/modules/objects/collisionshapes/ConeCollisionShape.h
r5728 r5730 30 30 #define _ConeCollisionShape_H__ 31 31 32 #include " OrxonoxPrereqs.h"33 #include " CollisionShape.h"32 #include "objects/ObjectsPrereqs.h" 33 #include "objects/collisionshapes/CollisionShape.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _O rxonoxExport ConeCollisionShape : public CollisionShape37 class _ObjectsExport ConeCollisionShape : public CollisionShape 38 38 { 39 39 public: -
code/branches/libraries2/src/modules/objects/collisionshapes/PlaneCollisionShape.h
r5728 r5730 30 30 #define _PlaneCollisionShape_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include "util/Math.h" 35 #include " CollisionShape.h"35 #include "objects/collisionshapes/CollisionShape.h" 36 36 37 37 namespace orxonox 38 38 { 39 class _O rxonoxExport PlaneCollisionShape : public CollisionShape39 class _ObjectsExport PlaneCollisionShape : public CollisionShape 40 40 { 41 41 public: -
code/branches/libraries2/src/modules/objects/collisionshapes/SphereCollisionShape.h
r5728 r5730 30 30 #define _SphereCollisionShape_H__ 31 31 32 #include " OrxonoxPrereqs.h"33 #include " CollisionShape.h"32 #include "objects/ObjectsPrereqs.h" 33 #include "objects/collisionshapes/CollisionShape.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _O rxonoxExport SphereCollisionShape : public CollisionShape37 class _ObjectsExport SphereCollisionShape : public CollisionShape 38 38 { 39 39 public: -
code/branches/libraries2/src/modules/objects/eventsystem/EventDispatcher.h
r5728 r5730 30 30 #define _EventDispatcher_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <list> … … 37 37 namespace orxonox 38 38 { 39 class _O rxonoxExport EventDispatcher : public BaseObject39 class _ObjectsExport EventDispatcher : public BaseObject 40 40 { 41 41 public: -
code/branches/libraries2/src/modules/objects/eventsystem/EventListener.h
r5728 r5730 30 30 #define _EventListener_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <string> … … 38 38 namespace orxonox 39 39 { 40 class _O rxonoxExport EventListener : public BaseObject, public XMLNameListener40 class _ObjectsExport EventListener : public BaseObject, public XMLNameListener 41 41 { 42 42 public: -
code/branches/libraries2/src/modules/objects/eventsystem/EventTarget.h
r5728 r5730 30 30 #define _EventTarget_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include "core/BaseObject.h" … … 37 37 namespace orxonox 38 38 { 39 class _O rxonoxExport EventTarget : public BaseObject, public XMLNameListener39 class _ObjectsExport EventTarget : public BaseObject, public XMLNameListener 40 40 { 41 41 public: -
code/branches/libraries2/src/modules/objects/triggers/CMakeLists.txt
r5728 r5730 1 ADD_SOURCE_FILES(O RXONOX_SRC_FILES1 ADD_SOURCE_FILES(OBJECTS_SRC_FILES 2 2 Trigger.cc 3 3 DistanceTrigger.cc -
code/branches/libraries2/src/modules/objects/triggers/CheckPoint.h
r3196 r5730 35 35 #define _CheckPoint_H__ 36 36 37 #include " OrxonoxPrereqs.h"37 #include "objects/ObjectsPrereqs.h" 38 38 39 39 #include "interfaces/RadarViewable.h" … … 42 42 namespace orxonox 43 43 { 44 class _O rxonoxExport CheckPoint : public DistanceTrigger, public RadarViewable44 class _ObjectsExport CheckPoint : public DistanceTrigger, public RadarViewable 45 45 { 46 46 public: -
code/branches/libraries2/src/modules/objects/triggers/DistanceTrigger.h
r5728 r5730 30 30 #define _DistanceTrigger_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <set> … … 39 39 namespace orxonox 40 40 { 41 class _O rxonoxExport DistanceTrigger : public Trigger, public PlayerTrigger41 class _ObjectsExport DistanceTrigger : public Trigger, public PlayerTrigger 42 42 { 43 43 public: -
code/branches/libraries2/src/modules/objects/triggers/EventTrigger.h
r3280 r5730 30 30 #define _EventTrigger_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 #include "Trigger.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _O rxonoxExport EventTrigger : public Trigger37 class _ObjectsExport EventTrigger : public Trigger 38 38 { 39 39 public: -
code/branches/libraries2/src/modules/objects/triggers/Trigger.h
r5693 r5730 30 30 #define _Trigger_H__ 31 31 32 #include " OrxonoxPrereqs.h"32 #include "objects/ObjectsPrereqs.h" 33 33 34 34 #include <set> … … 51 51 } 52 52 53 class _O rxonoxExport Trigger : public StaticEntity, public Tickable53 class _ObjectsExport Trigger : public StaticEntity, public Tickable 54 54 { 55 55 public: -
code/branches/libraries2/src/modules/weapons/CMakeLists.txt
r5724 r5730 13 13 LINK_LIBRARIES 14 14 orxonox 15 # TODO: Remove this as soon as projectiles aren't hardcoded anymore buth rather defined in XML 16 objects 15 17 SOURCE_FILES ${WEAPONS_SRC_FILES} 16 18 )
Note: See TracChangeset
for help on using the changeset viewer.