Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2008, 2:20:51 PM (17 years ago)
Author:
dafrick
Message:

Playing with Triggers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem2/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h

    r2103 r2193  
    3030#define _DistanceTrigger_H__
    3131
    32 #include "Trigger.h"
     32#include "PlayerTrigger.h"
    3333
    3434#include <set>
     
    3737#include "core/BaseObject.h"
    3838
     39#include "orxonox/objects/worldentities/ControllableEntity.h"
     40
    3941namespace orxonox
    4042{
    41   class _OrxonoxExport DistanceTrigger : public Trigger
     43  class _OrxonoxExport DistanceTrigger : public PlayerTrigger
    4244  {
    4345    public:
     
    5658      inline float getDistance() const
    5759        { return this->distance_; }
     60       
     61        virtual ControllableEntity* getTriggeringPlayer(void) const;
    5862
    5963      bool checkDistance();
     
    6670      std::set<Ogre::Node*> targetSet_;
    6771      float distance_;
     72     
     73      ControllableEntity* player_;
     74     
    6875  };
    6976}
Note: See TracChangeset for help on using the changeset viewer.