Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2009, 10:38:48 PM (16 years ago)
Author:
landauf
Message:

Added CMakeLists, ObjectsPrereqs.h and _ObjectsExport
Changed Paths in the files of the objects module
Compiles now again

Btw, I had to link the objects module into the weaponsystem module because the projectile is hardcoded at the moment and therefore needs a collision shape. This will be changed somewhen in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/libraries2/src/modules/objects/Planet.h

    r5728 r5730  
    3030#define _Planet_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "objects/ObjectsPrereqs.h"
    3333
    3434#include <string>
    3535#include "tools/BillboardSet.h"
    3636#include "tools/Mesh.h"
    37 #include "MovableEntity.h"
     37#include "objects/worldentities/MovableEntity.h"
    3838
    3939namespace orxonox
    4040{
    41     class _OrxonoxExport Planet : public MovableEntity
     41    class _ObjectsExport Planet : public MovableEntity
    4242    {
    4343        public:
    4444            Planet(BaseObject* creator);
    45            
     45
    4646            virtual ~Planet();
    47            
     47
    4848            void init();
    4949            virtual void tick(float dt);
    50            
     50
    5151            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    52            
     52
    5353            virtual void changedVisibility();
    54            
     54
    5555            inline void setMeshSource(const std::string& meshname)
    5656                { this->meshSrc_ = meshname; this->changedMesh(); }
    57                
     57
    5858            inline const std::string& getMeshSource() const
    5959                { return this->meshSrc_; }
     
    6161            inline void setCastShadows(bool bCastShadows)
    6262                { this->bCastShadows_ = bCastShadows; this->changedShadows(); }
    63                
     63
    6464            inline bool getCastShadows() const
    65                 { return this->bCastShadows_; }           
    66            
     65                { return this->bCastShadows_; }
     66
    6767            inline const std::string& getMesh() const{
    6868                return this->meshSrc_;
    6969            }
    70            
     70
    7171            inline void setAtmosphereSize(float size){
    7272                this->atmosphereSize = size;
    7373            }
    74            
     74
    7575            inline float getAtmosphereSize(){
    7676                return this->atmosphereSize;
    7777            }
    78            
     78
    7979            inline void setAtmosphere(const std::string& atmosphere){
    8080                this->atmosphere_ = atmosphere;
    8181            }
    82            
     82
    8383            inline const std::string& getAtmosphere(){
    8484                return this->atmosphere_;
    8585            }
    86            
     86
    8787            inline void setImageSize(float size){
    8888                this->imageSize = size;
    8989            }
    90            
     90
    9191            inline float getImageSize(){
    9292                return this->imageSize;
     
    9797
    9898        private:
    99        
     99
    100100            void changedMesh();
    101101            void changedShadows();
    102            
     102
    103103            std::string meshSrc_;
    104104            std::string atmosphere_;
Note: See TracChangeset for help on using the changeset viewer.