Changeset 2193 for code/branches/questsystem2/src/orxonox/objects/quest
- Timestamp:
- Nov 12, 2008, 2:20:51 PM (16 years ago)
- Location:
- code/branches/questsystem2/src/orxonox/objects/quest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/QuestEffectBeacon.cc
r2191 r2193 32 32 #include "core/CoreIncludes.h" 33 33 #include "core/XMLPort.h" 34 #include "core/Event .h"34 #include "core/EventIncludes.h" 35 35 36 36 #include "orxonox/objects/worldentities/ControllableEntity.h" 37 #include "orxonox/objects/worldentities/triggers/ Trigger.h"37 #include "orxonox/objects/worldentities/triggers/PlayerTrigger.h" 38 38 #include "QuestEffect.h" 39 39 … … 64 64 } 65 65 66 void processEvent(Event& event)66 void QuestEffectBeacon::processEvent(Event& event) 67 67 { 68 //TDO. Resolve pseudo code. 69 //if(isControllableEntity(event.originator_)) 70 //{ 71 // SetEvent(BaseObject, "activity", execute, event); 72 //} 68 SetSubclassEvent(QuestEffectBeacon, "execute", execute, event, PlayerTrigger); 73 69 } 74 70 … … 150 146 } 151 147 152 bool QuestEffectBeacon::addTrigger( Trigger* trigger)148 bool QuestEffectBeacon::addTrigger(PlayerTrigger* trigger) 153 149 { 154 150 if(this->trigger_ != NULL) -
code/branches/questsystem2/src/orxonox/objects/quest/QuestEffectBeacon.h
r2191 r2193 77 77 int times_; //!< Number of times the beacon can be exectued. 78 78 QuestEffectBeaconStatus::Enum status_; 79 Trigger* trigger_;79 PlayerTrigger* trigger_; 80 80 81 81 bool setTimes(const int & n); 82 82 bool addEffect(QuestEffect* effect); 83 bool addTrigger( Trigger* trigger);83 bool addTrigger(PlayerTrigger* trigger); 84 84 85 85 const QuestEffect* getEffect(unsigned int index) const;
Note: See TracChangeset
for help on using the changeset viewer.