Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2011, 4:33:33 PM (13 years ago)
Author:
anbueche
Message:

portals work pretty good

File:
1 edited

Legend:

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

    r8200 r8243  
    88#include "objects/eventsystem/EventListener.h"
    99
    10 #include <set>
     10#include <map>
    1111
    1212namespace orxonox
    1313{
    14     class _PortalsExport PortalLink : public EventListener
     14    class _PortalsExport PortalLink : public BaseObject
    1515    {
    1616        public:
     
    3636                return this->toID_;
    3737            }
    38             void use(WorldEntity * entity);
    39             virtual void processEvent(Event& event);
     38            static void use(MobileEntity * entity, PortalEndPoint * entrance);
    4039        protected:
    4140        private:
     41            static std::map<PortalEndPoint *, PortalEndPoint *> links_s;
    4242            unsigned int fromID_;
    4343            unsigned int toID_;
     
    4545            PortalEndPoint* to_;
    4646            float activationRadius_;
    47             std::set<WorldEntity *> recentlyPorted;
    48             ObjectList<WorldEntity>::iterator it_;
    4947            bool isNowPortable(WorldEntity * ent);
    5048    };
Note: See TracChangeset for help on using the changeset viewer.