Changeset 8668 for code/branches/presentation/src/orxonox/interfaces
- Timestamp:
- May 29, 2011, 7:15:43 PM (14 years ago)
- Location:
- code/branches/presentation/src/orxonox/interfaces
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/interfaces/InterfaceCompilation.cc
r8667 r8668 42 42 #include "core/CoreIncludes.h" 43 43 44 #include "infos/PlayerInfo.h" 45 #include "worldentities/pawns/Pawn.h" 46 44 47 namespace orxonox 45 48 { … … 60 63 61 64 this->isForPlayer_ = false; 65 } 66 67 void PlayerTrigger::setTriggeringPawn(Pawn* pawn) 68 { 69 assert(pawn); 70 this->pawn_ = WeakPtr<Pawn>(pawn); 71 if (pawn) 72 this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer()); 62 73 } 63 74 -
code/branches/presentation/src/orxonox/interfaces/PlayerTrigger.h
r8667 r8668 39 39 40 40 #include "core/OrxonoxClass.h" 41 42 #include "infos/PlayerInfo.h"43 #include "worldentities/pawns/Pawn.h"44 41 45 42 namespace orxonox … … 86 83 @param player A pointer to the Pawn that triggered the PlayerTrigger. 87 84 */ 88 inline void setTriggeringPawn(Pawn* pawn) 89 { assert(pawn); this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer()); this->pawn_ = WeakPtr<Pawn>(pawn); } 85 void setTriggeringPawn(Pawn* pawn); 90 86 91 87 /**
Note: See TracChangeset
for help on using the changeset viewer.