Changeset 5938 for code/trunk/src/modules
- Timestamp:
- Oct 13, 2009, 10:17:01 PM (15 years ago)
- Location:
- code/trunk/src/modules/questsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/QuestEffectBeacon.cc
r5929 r5938 90 90 @brief 91 91 Executes the QuestEffectBeacon. 92 This means extracting the ControllableEntity from the PlayerTrigger, provided by the Event causing the execution, and the extracting the PlayerInfo from the received ControllableEntityand invoking the QuestEffectbeacon's QuestEffects on the received PlayerInfo.92 This means extracting the Pawn from the PlayerTrigger, provided by the Event causing the execution, and the extracting the PlayerInfo from the received Pawn and invoking the QuestEffectbeacon's QuestEffects on the received PlayerInfo. 93 93 @param trigger 94 94 Apointer to the PlayerTrigger that threw the Event. … … 108 108 } 109 109 110 if(!trigger->isForPlayer()) //!< The PlayerTrigger is not exclusively for ControllableEntities which means we cannot extract one.111 { 112 return false; 113 } 114 115 //! Extracting the ControllableEntity form the PlayerTrigger.110 if(!trigger->isForPlayer()) //!< The PlayerTrigger is not exclusively for Pawns which means we cannot extract one. 111 { 112 return false; 113 } 114 115 //! Extracting the Pawn from the PlayerTrigger. 116 116 Pawn* pawn = trigger->getTriggeringPlayer(); 117 117 … … 122 122 } 123 123 124 //! Extract the PlayerInfo from the ControllableEntity.124 //! Extract the PlayerInfo from the Pawn. 125 125 PlayerInfo* player = pawn->getPlayer(); 126 126 -
code/trunk/src/modules/questsystem/QuestEffectBeacon.h
r5929 r5938 114 114 std::list<QuestEffect*> effects_; //!< The list of QuestEffects to be invoked on the executing player. 115 115 int times_; //!< Number of times the beacon can be exectued. 116 QuestEffectBeaconStatus::Value status_; //!< The status of the Q UestEffectBeacon, Can be eighter active or inactive.116 QuestEffectBeaconStatus::Value status_; //!< The status of the QuestEffectBeacon, Can be eighter active or inactive. 117 117 118 118 bool setTimes(const int & n); //!< Set the number of times the QuestEffectBeacon can be executed.
Note: See TracChangeset
for help on using the changeset viewer.