Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8455


Ignore:
Timestamp:
May 12, 2011, 1:22:55 PM (13 years ago)
Author:
anbueche
Message:

comments added

Location:
code/branches/portals/src/modules/portals
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/portals/src/modules/portals/PortalEndPoint.h

    r8454 r8455  
    2121            virtual ~PortalEndPoint();
    2222            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    23             inline void setTargets(const std::string & targets)                 //!< set types which are allowed to activate the PortalEndPoint
     23            inline void setTargets(const std::string & targets)                 //!< add types which are allowed to activate the PortalEndPoint
    2424            {
    2525                this->trigger_->addTargets(targets);
  • code/branches/portals/src/modules/portals/PortalLink.cc

    r8243 r8455  
    3232        }
    3333    }
    34    
    35     void PortalLink::tick(float dt)
    36     {
    37         SUPER(PortalLink, tick, dt);
    38     }
    3934
    4035    void PortalLink::use(MobileEntity* entity, PortalEndPoint * entrance)
  • code/branches/portals/src/modules/portals/PortalLink.h

    r8243 r8455  
    1717            PortalLink(BaseObject* creator);
    1818            virtual ~PortalLink();
    19    
    2019            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
    2321            {
    2422                this->fromID_ = from;
     
    2826                return this->fromID_;
    2927            }
    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
    3129            {
    3230                this->toID_ = to;
     
    3634                return this->toID_;
    3735            }
    38             static void use(MobileEntity * entity, PortalEndPoint * entrance);
     36            static void use(MobileEntity * entity, PortalEndPoint * entrance);   //
    3937        protected:
    4038        private:
Note: See TracChangeset for help on using the changeset viewer.