Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2011, 11:06:45 PM (13 years ago)
Author:
anbueche
Message:

First steps to use of Triggers and Events

File:
1 edited

Legend:

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

    r8177 r8198  
    66#include "core/BaseObject.h"
    77#include "PortalEndPoint.h"
     8#include "objects/eventsystem/EventListener.h"
    89
    910#include <set>
     
    1112namespace orxonox
    1213{
    13     class _OrxonoxExport PortalLink : public BaseObject
     14    class _OrxonoxExport PortalLink : public EventListener
    1415    {
    1516        public:
     
    3637            }
    3738            void use(WorldEntity * entity);
     39            virtual void processEvent(Event& event);
    3840        protected:
    3941        private:
     
    4446            float activationRadius_;
    4547            std::set<WorldEntity *> recentlyPorted;
     48            ObjectList<WorldEntity>::iterator it_;
    4649            bool isNowPortable(WorldEntity * ent);
    4750    };
Note: See TracChangeset for help on using the changeset viewer.