Changeset 8457 for code/trunk/src/modules
- Timestamp:
- May 12, 2011, 1:51:18 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
- 8 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/portals (added) merged: 8177,8198-8200,8243,8278,8290,8454-8455
- Property svn:mergeinfo changed
-
code/trunk/src/modules/CMakeLists.txt
r7401 r8457 32 32 ADD_SUBDIRECTORY(pickup) 33 33 ADD_SUBDIRECTORY(pong) 34 ADD_SUBDIRECTORY(portals) 34 35 ADD_SUBDIRECTORY(questsystem) 35 36 ADD_SUBDIRECTORY(weapons) -
code/trunk/src/modules/objects/triggers/MultiTrigger.h
r8213 r8457 146 146 inline bool isTarget(BaseObject* target) 147 147 { if(target == NULL) return true; else return targetMask_.isIncluded(target->getIdentifier()); } 148 149 void addTarget(const std::string& targets); //!< Add some target to the MultiTrigger. 148 150 149 151 protected: … … 158 160 void broadcast(bool status); //!< Helper method. Broadcasts an Event for every object that is a target. 159 161 160 void addTarget(const std::string& targets); //!< Add some target to the MultiTrigger. 161 void removeTarget(const std::string& targets); //!< Remove some target from the MultiTrigger. 162 void removeTarget(const std::string& target); //!< Remove some target from the MultiTrigger. 162 163 163 164 /** -
code/trunk/src/modules/portals/PortalEndPoint.cc
r8455 r8457 33 33 XMLPortParam(PortalEndPoint, "design", setTemplate, getTemplate, xmlelement, mode); 34 34 XMLPortParamExtern(PortalEndPoint, DistanceMultiTrigger, this->trigger_, "distance", setDistance, getDistance, xmlelement, mode); 35 XMLPortParamLoadOnly(PortalEndPoint, "target", setTarget s, xmlelement, mode).defaultValues("Pawn");35 XMLPortParamLoadOnly(PortalEndPoint, "target", setTarget, xmlelement, mode).defaultValues("Pawn"); 36 36 37 37 // Add the DistanceMultiTrigger as event source. -
code/trunk/src/modules/portals/PortalEndPoint.h
r8455 r8457 21 21 virtual ~PortalEndPoint(); 22 22 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 23 inline void setTarget s(const std::string & targets) //!< add types which are allowed to activate the PortalEndPoint23 inline void setTarget(const std::string & target) //!< add types which are allowed to activate the PortalEndPoint 24 24 { 25 this->trigger_->addTarget s(targets);25 this->trigger_->addTarget(target); 26 26 } 27 27
Note: See TracChangeset
for help on using the changeset viewer.