Changeset 7403 for code/trunk/src/modules/objects/triggers
- Timestamp:
- Sep 11, 2010, 10:20:44 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/notifications (added) merged: 7319,7324,7326,7338-7343,7348-7349,7351,7354-7355,7358-7360,7362,7395,7398-7400
- Property svn:mergeinfo changed
-
code/trunk/src/modules/objects/triggers/MultiTriggerContainer.cc
r7301 r7403 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/trunk/src/modules/objects/triggers/MultiTriggerContainer.h
r7301 r7403 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
Note: See TracChangeset
for help on using the changeset viewer.