Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 20, 2011, 11:27:45 PM (13 years ago)
Author:
dafrick
Message:

Some cleanup…

File:
1 edited

Legend:

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

    r8706 r8767  
    3838#include "portals/PortalsPrereqs.h"
    3939
     40#include <map>
    4041#include <set>
    4142#include <string>
    42 #include <map>
     43
     44#include "core/EventIncludes.h"
    4345
    4446#include "worldentities/StaticEntity.h"
    4547#include "interfaces/RadarViewable.h"
    46 #include "graphics/Billboard.h"
    4748#include "objects/triggers/DistanceMultiTrigger.h"
    48 #include "core/EventIncludes.h"
    49 #include <ctime>
    5049
    5150namespace orxonox
     
    5453     @brief
    5554     A PortalEndPoint serves as portal entrance and/or exit.
    56      
     55
    5756     @ingroup Portals
    5857     */
    59    
     58
    6059    class _PortalsExport PortalEndPoint : public StaticEntity, public RadarViewable
    6160    {
     
    6362            PortalEndPoint(BaseObject* creator);
    6463            virtual ~PortalEndPoint();
    65            
     64
    6665            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    6766            virtual void changedActivity(void);
    68            
     67
    6968            inline void setTarget(const std::string & target)                 //!< add types which are allowed to activate the PortalEndPoint
    7069                { this->trigger_->addTarget(target); }
    71            
     70
    7271            void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
    7372            static std::map<unsigned int, PortalEndPoint *> idMap_s; //!< Maps the id of each PortalEndPoint to a pointer to that PortalEndPoint
     
    7877            inline void setID(unsigned int id)
    7978                { this->id_ = id; }
    80            
     79
    8180            inline unsigned int getID() const
    8281                { return this->id_; }
    83            
     82
    8483            /// \brief Set templateName_ (the name of the design Template) and add that Template to this Object
    8584            inline void setTemplate(const std::string & name)
     
    9998             * \param entity The Entity which should jump out of this portal */
    10099            void jumpOut(MobileEntity * entity);
    101            
     100
    102101            /** \brief Tells wether a certain Entity is allowed to enter the PortalEndPoint?
    103102                @return @c true if the entity not just came out of this portal and the reenterDelay has expired for it, @c false otherwise
     
    105104            bool letsEnter(MobileEntity* entity);
    106105        protected:
    107            
     106
    108107        private:
    109108            static const std::string EVENTFUNCTIONNAME; //!< = "execute"
    110            
     109
    111110            unsigned int id_;            //!< the hopefully (depends on the writer of the levelfile) unique id, which is used to establish links between PortalEndPoints
    112111            DistanceMultiTrigger * trigger_;      //!< the DistanceMultiTrigger which notices near entities of the defined type
Note: See TracChangeset for help on using the changeset viewer.