Changeset 5730 for code/branches/libraries2/src/modules/objects/Planet.h
- Timestamp:
- Aug 31, 2009, 10:38:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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_;
Note: See TracChangeset
for help on using the changeset viewer.