Changeset 5693 for code/trunk/src/orxonox/objects/worldentities/triggers
- Timestamp:
- Aug 29, 2009, 10:19:38 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/libraries (added) merged: 5612-5613,5615-5619,5621-5623,5625-5640,5642-5643,5647-5649,5665-5666,5685-5687,5692
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/PlayerTrigger.h
r3280 r5693 52 52 PlayerTrigger(BaseObject* creator); 53 53 virtual ~PlayerTrigger(); 54 54 55 55 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a PlayerTrigger object through XML. 56 56 57 57 /** 58 58 @brief Returns the player that triggered the PlayerTrigger. … … 61 61 inline Pawn* getTriggeringPlayer(void) const 62 62 { return this->player_; } 63 63 64 64 /** 65 65 @brief Checks whether the PlayerTrigger normally returns a ControllableEntity. … … 68 68 inline bool isForPlayer(void) const 69 69 { return this->isForPlayer_; } 70 70 71 71 protected: 72 72 virtual bool isTriggered(TriggerMode::Value mode) = 0; 73 73 74 74 /** 75 75 @brief Set the player that triggered the PlayerTrigger. This is normally done by classes inheriting vom PlayerTrigger. … … 81 81 /** 82 82 @brief Set whether the PlayerTrigger normally is triggered by ControllableEntities. 83 @param isForPlayer Should be true when the PlayerTrigger s chould be set to normally be triggered by ControllableEntities, false if not.83 @param isForPlayer Should be true when the PlayerTrigger should be set to normally be triggered by ControllableEntities, false if not. 84 84 */ 85 85 inline void setForPlayer(bool isForPlayer) 86 86 { this->isForPlayer_ = isForPlayer; } 87 87 88 88 private: 89 89 Pawn* player_; //!< The player that triggered the PlayerTrigger. 90 bool isForPlayer_; //!< Is true when the PlayerTrigger s chould be set to normally be triggered by ControllableEntities.91 90 bool isForPlayer_; //!< Is true when the PlayerTrigger should be set to normally be triggered by ControllableEntities. 91 92 92 }; 93 93 -
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.h
r3280 r5693 36 36 37 37 #include "tools/BillboardSet.h" 38 #include " interfaces/Tickable.h"38 #include "tools/interfaces/Tickable.h" 39 39 #include "objects/worldentities/StaticEntity.h" 40 40
Note: See TracChangeset
for help on using the changeset viewer.