- Timestamp:
- Oct 13, 2009, 9:49:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/interfaces/PlayerTrigger.h
r5781 r5936 43 43 /** 44 44 @brief 45 A PlayerTrigger is a trigger which is normally triggered by ControllableEntities and can as such return a pointer to the ControllableEntitywhich triggered it.45 A PlayerTrigger is a trigger which is normally triggered by Pawns and can as such return a pointer to the Pawn which triggered it. 46 46 @author 47 47 Damian 'Mozork' Frick … … 55 55 /** 56 56 @brief Returns the player that triggered the PlayerTrigger. 57 @return Returns a pointer to the ControllableEntitythat triggered the PlayerTrigger.57 @return Returns a pointer to the Pawn that triggered the PlayerTrigger. 58 58 */ 59 59 inline Pawn* getTriggeringPlayer(void) const … … 61 61 62 62 /** 63 @brief Checks whether the PlayerTrigger normally returns a ControllableEntity.64 @return Returns true if the PlayerTrigger normally returns a ControllableEntity.63 @brief Checks whether the PlayerTrigger normally returns a Pawn. 64 @return Returns true if the PlayerTrigger normally returns a Pawn. 65 65 */ 66 66 inline bool isForPlayer(void) const … … 70 70 /** 71 71 @brief Set the player that triggered the PlayerTrigger. This is normally done by classes inheriting vom PlayerTrigger. 72 @param player A pointer to the ControllableEntitythat triggered the PlayerTrigger.72 @param player A pointer to the Pawn that triggered the PlayerTrigger. 73 73 */ 74 74 inline void setTriggeringPlayer(Pawn* player) … … 76 76 77 77 /** 78 @brief Set whether the PlayerTrigger normally is triggered by ControllableEntities.79 @param isForPlayer Should be true when the PlayerTrigger should be set to normally be triggered by ControllableEntities, false if not.78 @brief Set whether the PlayerTrigger normally is triggered by Pawns. 79 @param isForPlayer Should be true when the PlayerTrigger should be set to normally be triggered by Pawns, false if not. 80 80 */ 81 81 inline void setForPlayer(bool isForPlayer) … … 84 84 private: 85 85 Pawn* player_; //!< The player that triggered the PlayerTrigger. 86 bool isForPlayer_; //!< Is true when the PlayerTrigger should be set to normally be triggered by ControllableEntities.86 bool isForPlayer_; //!< Is true when the PlayerTrigger should be set to normally be triggered by Pawns. 87 87 88 88 };
Note: See TracChangeset
for help on using the changeset viewer.