Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2009, 5:15:04 PM (15 years ago)
Author:
Aurelian
Message:

Checkpoints in a row working with final destination→ end of game

File:
1 edited

Legend:

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

    r2905 r2936  
    3636#define _CheckPoint_H__
    3737
    38 #include "OrxonoxPrereqs.h"
     38#include "DistanceTrigger.h"
    3939
    40 #include "Trigger.h"
     40#include <set>
     41
     42#include "core/ClassTreeMask.h"
     43#include "core/BaseObject.h"
     44
     45#include "orxonox/objects/worldentities/ControllableEntity.h"
    4146
    4247namespace orxonox
    4348{
    44     class _OrxonoxExport CheckPoint : public DistanceTrigger
     49  class _OrxonoxExport CheckPoint : public DistanceTrigger
    4550    {
    4651    public:
    47         CheckPoint(BaseObject* creator);
    48         virtual ~CheckPoint();
     52      CheckPoint(BaseObject* creator);
     53      virtual ~CheckPoint();
    4954       
    50         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.
     55      virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.
    5156
    52        
    5357    private:
    54        virtual void triggered(bool bIsTriggered);
    55 
    56        bool bIsDestination_;   
    57     };
    58 
     58      virtual void triggered(bool bIsTriggered);
     59      virtual void setDestination(bool isDestination);
     60      virtual bool getDestination();   
     61     
     62      bool bIsDestination_;
     63  };
    5964}
    6065
Note: See TracChangeset for help on using the changeset viewer.