Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 5:54:42 PM (15 years ago)
Author:
Aurelian
Message:

Final commit of gametype asteroids for presentation. everything working. New gadget: Radar displays the next checkpoint to reach!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/triggers/CheckPoint.h

    r3033 r3064  
    3636
    3737#include "DistanceTrigger.h"
     38#include "objects/RadarViewable.h"
    3839
    3940namespace orxonox
    4041{
    41   class _OrxonoxExport CheckPoint : public DistanceTrigger
    42   {
     42    class _OrxonoxExport CheckPoint : public DistanceTrigger, public RadarViewable
     43    {
    4344    public:
    44       CheckPoint(BaseObject* creator);
    45       virtual ~CheckPoint();
     45        CheckPoint(BaseObject* creator);
     46        virtual ~CheckPoint();
    4647
    47       virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.
     48        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.
     49        virtual void changedActivity();
    4850
    4951    private:
    50       virtual void triggered(bool bIsTriggered);
    51       virtual void notifyMaskUpdate();
     52        virtual void triggered(bool bIsTriggered);
     53        virtual void notifyMaskUpdate();
    5254
    53       inline void setDestination(bool isDestination)
    54         { bIsDestination_ = isDestination; }
     55        inline void setDestination(bool isDestination)
     56            { bIsDestination_ = isDestination; }
    5557
    56       inline bool getDestination()
    57         { return bIsDestination_; }
     58        inline const WorldEntity* getWorldEntity() const
     59            { return this; }
    5860
    59       inline void setFirst(bool isFirst)
    60         { this->bIsFirst_ = isFirst; }
     61        inline bool getDestination()
     62            { return bIsDestination_; }
    6163
    62       inline bool getFirst()
    63         { return this->bIsFirst_; }
     64        inline void setFirst(bool isFirst)
     65            { this->bIsFirst_ = isFirst; }
    6466
    65       inline void setAddTime(float time)
    66         { this->addTime_ = time; }
     67        inline bool getFirst()
     68            { return this->bIsFirst_; }
    6769
    68       inline bool getAddTime()
    69         { return this->addTime_; }
     70        inline void setAddTime(float time)
     71            { this->addTime_ = time; }
    7072
    71       bool bIsFirst_;
    72       bool bIsDestination_;
    73       float addTime_;
    74   };
     73        inline bool getAddTime()
     74            { return this->addTime_; }
     75
     76        bool bIsFirst_;
     77        bool bIsDestination_;
     78        float addTime_;
     79    };
    7580}
    7681
Note: See TracChangeset for help on using the changeset viewer.