Changeset 8457 for code/trunk
- Timestamp:
- May 12, 2011, 1:51:18 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
- 9 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/data/levels/portals.oxw
r8455 r8457 36 36 37 37 <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/> 38 <PortalEndPoint position="- 90,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>38 <PortalEndPoint position="-100,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> 39 39 <PortalLink fromID="1" toID="2" /> 40 40 <PortalLink fromID="2" toID="1" /> 41 41 42 < PickupSpawner position="-100,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="10">42 <!--PickupSpawner position="-200,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="10"> 43 43 <pickup> 44 44 <DronePickup template=dronepickup /> 45 45 </pickup> 46 </PickupSpawner >46 </PickupSpawner--> 47 47 48 48 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
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.