Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2016, 4:01:11 PM (8 years ago)
Author:
ooguz
Message:

Waypointarrow und Waypoint Klassen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/QuestGuide_HS16/src/orxonox/worldentities/Waypoint.h

    r11237 r11243  
    66#include "OrxonoxPrereqs.h"
    77#include "StaticEntity.h"
    8 #include "overlays/OverlaysPrereqs.h"
     8#include "graphics/Model.h"
    99
    1010#include <map>
     
    1313#include "util/OgreForwardRefs.h"
    1414#include "tools/interfaces/Tickable.h"
    15 #include "interfaces/RadarListener.h"
    16 #include "overlays/OrxonoxOverlay.h"
    1715
    1816namespace orxonox
     
    3028    */
    3129
    32     class _OrxonoxExport Waypoint : public StaticEntity, public RadarListener
    33     {
     30    class _OrxonoxExport Waypoint : public StaticEntity {
     31       
    3432        public:
     33
    3534            Waypoint(Context* context);
    3635            virtual ~Waypoint();
    3736
    38             virtual void addObject(RadarViewable* object) override;
    39             virtual void removeObject(RadarViewable* viewable) override;
    40             virtual void objectChanged(RadarViewable* viewable) override;
    4137
    42             using StaticEntity::setPosition;
    43             using StaticEntity::setOrientation;
    44 
    45             virtual void setPosition(const Vector3& position) override;
    46             virtual void setOrientation(const Quaternion& orientation) override;
    47 
    48             virtual void positionChanged() override { }
    49             virtual void radarTick(float dt) override {}
    50 
    51             virtual inline float getRadarSensitivity() const override
    52                 { return 1.0f; }
    53 
    54             inline unsigned int getMarkerLimit() const
    55                 { return this->markerLimit_; }
    56 
    57             static void selectClosestTarget();
    58             static void selectNextTarget();
     38            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
    5939
    6040
    6141
    6242        private:
    63             void registerVariables();
     43   
    6444            //virtual bool isCollisionTypeLegal(CollisionType type) const override;
    65 
     45            Model* model;
     46           
    6647            // network callbacks
    67             inline void positionChanged()
    68                 { this->setPosition(this->getPosition()); }
    69             inline void orientationChanged()
    70                 { this->setOrientation(this->getOrientation()); }
    71 
    72             // Bullet btMotionState related
    73             virtual void setWorldTransform(const btTransform& worldTrans) override;
    74             virtual void getWorldTransform(btTransform& worldTrans) const override;
    7548    };
    7649}
    7750
    78 #endif /* _StaticEntity_H__ */
     51#endif /* _Waypoint_H__ */
Note: See TracChangeset for help on using the changeset viewer.