Changeset 8455 for code/branches/portals/src
- Timestamp:
- May 12, 2011, 1:22:55 PM (14 years ago)
- Location:
- code/branches/portals/src/modules/portals
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/portals/src/modules/portals/PortalEndPoint.h
r8454 r8455 21 21 virtual ~PortalEndPoint(); 22 22 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 23 inline void setTargets(const std::string & targets) //!< set types which are allowed to activate the PortalEndPoint23 inline void setTargets(const std::string & targets) //!< add types which are allowed to activate the PortalEndPoint 24 24 { 25 25 this->trigger_->addTargets(targets); -
code/branches/portals/src/modules/portals/PortalLink.cc
r8243 r8455 32 32 } 33 33 } 34 35 void PortalLink::tick(float dt)36 {37 SUPER(PortalLink, tick, dt);38 }39 34 40 35 void PortalLink::use(MobileEntity* entity, PortalEndPoint * entrance) -
code/branches/portals/src/modules/portals/PortalLink.h
r8243 r8455 17 17 PortalLink(BaseObject* creator); 18 18 virtual ~PortalLink(); 19 20 19 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 21 virtual void tick(float dt); 22 inline void setFromID(unsigned int from) 20 inline void setFromID(unsigned int from) //!< set the ID of the PortalEndPoint which should act as the entrance of this link 23 21 { 24 22 this->fromID_ = from; … … 28 26 return this->fromID_; 29 27 } 30 inline void setToID(unsigned int to) 28 inline void setToID(unsigned int to) //!< set the ID of the PortalEndPoint which should act as the exit of this link 31 29 { 32 30 this->toID_ = to; … … 36 34 return this->toID_; 37 35 } 38 static void use(MobileEntity * entity, PortalEndPoint * entrance); 36 static void use(MobileEntity * entity, PortalEndPoint * entrance); // 39 37 protected: 40 38 private:
Note: See TracChangeset
for help on using the changeset viewer.