Changeset 7324 for code/branches/notifications/src/modules/objects/triggers
- Timestamp:
- Sep 2, 2010, 10:06:51 AM (14 years ago)
- Location:
- code/branches/notifications/src/modules/objects/triggers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/src/modules/objects/triggers/MultiTriggerContainer.cc
r7301 r7324 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "worldentities/pawns/Pawn.h" 37 38 38 39 namespace orxonox … … 65 66 { 66 67 RegisterObject(MultiTriggerContainer); 68 69 Pawn* pawn = orxonox_cast<Pawn*>(data); 70 if(pawn != NULL) 71 { 72 this->setForPlayer(true); 73 this->setTriggeringPlayer(pawn); 74 } 67 75 } 68 76 -
code/branches/notifications/src/modules/objects/triggers/MultiTriggerContainer.h
r7301 r7324 38 38 39 39 #include "core/BaseObject.h" 40 #include "interfaces/PlayerTrigger.h" 40 41 41 42 namespace orxonox … … 48 49 Damian 'Mozork' Frick 49 50 */ 50 class _ObjectsExport MultiTriggerContainer : public BaseObject 51 class _ObjectsExport MultiTriggerContainer : public BaseObject, public PlayerTrigger 51 52 { 52 53 … … 72 73 MultiTrigger* originator_; //!< The originator. 73 74 BaseObject* data_; //!< The data. 75 74 76 }; 75 77 -
code/branches/notifications/src/modules/objects/triggers/Trigger.cc
r7319 r7324 160 160 void Trigger::triggered(bool bIsTriggered) 161 161 { 162 COUT(1) << "Trigger triggered." << std::endl; //TODO: Remove debug.163 162 this->fireEvent(bIsTriggered); 164 163 }
Note: See TracChangeset
for help on using the changeset viewer.