Changeset 11071 for code/trunk/src/modules/portals
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/portals/PortalEndPoint.cc
r11022 r11071 48 48 std::map<unsigned int, PortalEndPoint *> PortalEndPoint::idMap_s; 49 49 50 PortalEndPoint::PortalEndPoint(Context* context) : StaticEntity(context), RadarViewable(this, static_cast<WorldEntity*>(this)), id_(0), trigger_( NULL), reenterDelay_(0)50 PortalEndPoint::PortalEndPoint(Context* context) : StaticEntity(context), RadarViewable(this, static_cast<WorldEntity*>(this)), id_(0), trigger_(nullptr), reenterDelay_(0) 51 51 { 52 52 RegisterObject(PortalEndPoint); … … 57 57 58 58 this->setRadarObjectColour(ColourValue::White); 59 this->setRadarObjectShape(RadarViewable:: Dot);59 this->setRadarObjectShape(RadarViewable::Shape::Dot); 60 60 this->setRadarVisibility(true); 61 61 if( GameMode::isMaster() ) … … 72 72 { 73 73 if (this->isInitialized()) { 74 if (this->trigger_ != NULL)74 if (this->trigger_ != nullptr) 75 75 this->trigger_->destroy(); 76 76 77 if (this->portalSound_ != NULL)77 if (this->portalSound_ != nullptr) 78 78 this->portalSound_->destroy(); 79 79 } … … 112 112 113 113 MultiTriggerContainer * cont = orxonox_cast<MultiTriggerContainer *>(trigger); 114 if(cont == 0)114 if(cont == nullptr) 115 115 return true; 116 116 117 117 DistanceMultiTrigger * originatingTrigger = orxonox_cast<DistanceMultiTrigger *>(cont->getOriginator()); 118 if(originatingTrigger == 0)118 if(originatingTrigger == nullptr) 119 119 { 120 120 return true; … … 122 122 123 123 MobileEntity * entity = orxonox_cast<MobileEntity *>(cont->getData()); 124 if(entity == 0)124 if(entity == nullptr) 125 125 return true; 126 126 -
code/trunk/src/modules/portals/PortalEndPoint.h
r9667 r11071 63 63 virtual ~PortalEndPoint(); 64 64 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;66 virtual void changedActivity(void) ;65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 66 virtual void changedActivity(void) override; 67 67 68 68 inline void setTarget(const std::string & target) //!< add types which are allowed to activate the PortalEndPoint 69 69 { this->trigger_->addTarget(target); } 70 70 71 v oid XMLEventPort(Element& xmlelement, XMLPort::Mode mode);71 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 72 72 static std::map<unsigned int, PortalEndPoint *> idMap_s; //!< Maps the id of each PortalEndPoint to a pointer to that PortalEndPoint 73 73 inline void setReenterDelay(unsigned int seconds) -
code/trunk/src/modules/portals/PortalLink.cc
r9667 r11071 40 40 std::map<PortalEndPoint *, PortalEndPoint *> PortalLink::links_s; 41 41 42 PortalLink::PortalLink(Context* context) : BaseObject(context), fromID_(0), toID_(0), from_( 0), to_(0)42 PortalLink::PortalLink(Context* context) : BaseObject(context), fromID_(0), toID_(0), from_(nullptr), to_(nullptr) 43 43 { 44 44 RegisterObject(PortalLink); … … 67 67 void PortalLink::use(MobileEntity* entity, PortalEndPoint * entrance) 68 68 { 69 if(entrance == 0)69 if(entrance == nullptr) 70 70 return; 71 71 -
code/trunk/src/modules/portals/PortalLink.h
r9667 r11071 56 56 PortalLink(Context* context); 57 57 virtual ~PortalLink(); 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 59 59 60 60 inline void setFromID(unsigned int from) //!< set the ID of the PortalEndPoint which should act as the entrance of this link
Note: See TracChangeset
for help on using the changeset viewer.