Changeset 5727 for code/branches/libraries2/src/orxonox/interfaces
- Timestamp:
- Aug 31, 2009, 9:18:17 PM (15 years ago)
- Location:
- code/branches/libraries2/src/orxonox/interfaces
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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.
Note: See TracChangeset
for help on using the changeset viewer.