Changeset 5727
- Timestamp:
- Aug 31, 2009, 9:18:17 PM (15 years ago)
- Location:
- code/branches/libraries2/src
- Files:
-
- 1 deleted
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libraries2/src/modules/questsystem/QuestEffectBeacon.cc
r5720 r5727 38 38 #include "core/EventIncludes.h" 39 39 #include "objects/worldentities/pawns/Pawn.h" 40 #include " objects/worldentities/triggers/PlayerTrigger.h"40 #include "interfaces/PlayerTrigger.h" 41 41 #include "QuestEffect.h" 42 42 -
code/branches/libraries2/src/orxonox/OrxonoxPrereqs.h
r5725 r5727 74 74 class NotificationListener; 75 75 class PawnListener; 76 class PlayerTrigger; 76 77 class RadarListener; 77 78 class RadarViewable; … … 161 162 class DistanceTrigger; 162 163 class EventTrigger; 163 class PlayerTrigger;164 164 class CheckPoint; 165 165 -
code/branches/libraries2/src/orxonox/interfaces/InterfaceCompilation.cc
r5693 r5727 35 35 #include "GametypeMessageListener.h" 36 36 #include "PawnListener.h" 37 #include "PlayerTrigger.h" 37 38 #include "RadarListener.h" 38 39 #include "Rewardable.h" … … 84 85 Rewardable::Rewardable() 85 86 { 86 Register Object(Rewardable);87 RegisterRootObject(Rewardable); 87 88 } 88 89 … … 92 93 NotificationListener::NotificationListener() 93 94 { 94 RegisterObject(NotificationListener); 95 RegisterRootObject(NotificationListener); 96 } 97 98 //---------------------------- 99 // PlayerTrigger 100 //---------------------------- 101 PlayerTrigger::PlayerTrigger() 102 { 103 RegisterRootObject(PlayerTrigger); 104 105 this->player_ = NULL; 106 this->isForPlayer_ = true; 95 107 } 96 108 } -
code/branches/libraries2/src/orxonox/interfaces/PlayerTrigger.h
r5722 r5727 37 37 38 38 #include "OrxonoxPrereqs.h" 39 #include " Trigger.h"39 #include "core/OrxonoxClass.h" 40 40 41 41 namespace orxonox … … 47 47 Damian 'Mozork' Frick 48 48 */ 49 class _OrxonoxExport PlayerTrigger : public Trigger49 class _OrxonoxExport PlayerTrigger : virtual public OrxonoxClass 50 50 { 51 51 public: 52 PlayerTrigger(BaseObject* creator); 53 virtual ~PlayerTrigger(); 54 55 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a PlayerTrigger object through XML. 52 PlayerTrigger(); 53 virtual ~PlayerTrigger() {} 56 54 57 55 /** … … 70 68 71 69 protected: 72 virtual bool isTriggered(TriggerMode::Value mode) = 0;73 74 70 /** 75 71 @brief Set the player that triggered the PlayerTrigger. This is normally done by classes inheriting vom PlayerTrigger. -
code/branches/libraries2/src/orxonox/objects/worldentities/triggers/CMakeLists.txt
r3033 r5727 3 3 DistanceTrigger.cc 4 4 EventTrigger.cc 5 PlayerTrigger.cc6 5 CheckPoint.cc 7 6 ) -
code/branches/libraries2/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
r5720 r5727 37 37 CreateFactory(DistanceTrigger); 38 38 39 DistanceTrigger::DistanceTrigger(BaseObject* creator) : PlayerTrigger(creator)39 DistanceTrigger::DistanceTrigger(BaseObject* creator) : Trigger(creator) 40 40 { 41 41 RegisterObject(DistanceTrigger); -
code/branches/libraries2/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
r3280 r5727 34 34 #include <set> 35 35 #include "core/ClassTreeMask.h" 36 #include "PlayerTrigger.h" 36 #include "Trigger.h" 37 #include "interfaces/PlayerTrigger.h" 37 38 38 39 namespace orxonox 39 40 { 40 class _OrxonoxExport DistanceTrigger : public PlayerTrigger41 class _OrxonoxExport DistanceTrigger : public Trigger, public PlayerTrigger 41 42 { 42 43 public: … … 67 68 std::set<Ogre::Node*> targetSet_; 68 69 float distance_; 69 70 70 71 }; 71 72 }
Note: See TracChangeset
for help on using the changeset viewer.