Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2011, 1:51:18 PM (14 years ago)
Author:
FelixSchulthess
Message:

merged portals branch into trunk

Location:
code/trunk
Files:
3 edited
8 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/modules/CMakeLists.txt

    r7401 r8457  
    3232ADD_SUBDIRECTORY(pickup)
    3333ADD_SUBDIRECTORY(pong)
     34ADD_SUBDIRECTORY(portals)
    3435ADD_SUBDIRECTORY(questsystem)
    3536ADD_SUBDIRECTORY(weapons)
  • code/trunk/src/modules/objects/triggers/MultiTrigger.h

    r8213 r8457  
    146146            inline bool isTarget(BaseObject* target)
    147147                { if(target == NULL) return true; else return targetMask_.isIncluded(target->getIdentifier()); }
     148               
     149            void addTarget(const std::string& targets); //!< Add some target to the MultiTrigger.
    148150
    149151        protected:
     
    158160            void broadcast(bool status); //!< Helper method. Broadcasts an Event for every object that is a target.
    159161
    160             void addTarget(const std::string& targets); //!< Add some target to the MultiTrigger.
    161             void removeTarget(const std::string& targets); //!< Remove some target from the MultiTrigger.
     162            void removeTarget(const std::string& target); //!< Remove some target from the MultiTrigger.
    162163
    163164            /**
  • code/trunk/src/modules/portals/PortalEndPoint.cc

    r8455 r8457  
    3333        XMLPortParam(PortalEndPoint, "design", setTemplate, getTemplate, xmlelement, mode);
    3434        XMLPortParamExtern(PortalEndPoint, DistanceMultiTrigger, this->trigger_, "distance", setDistance, getDistance, xmlelement, mode);
    35         XMLPortParamLoadOnly(PortalEndPoint, "target", setTargets, xmlelement, mode).defaultValues("Pawn");
     35        XMLPortParamLoadOnly(PortalEndPoint, "target", setTarget, xmlelement, mode).defaultValues("Pawn");
    3636       
    3737        // Add the DistanceMultiTrigger as event source.
  • code/trunk/src/modules/portals/PortalEndPoint.h

    r8455 r8457  
    2121            virtual ~PortalEndPoint();
    2222            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    23             inline void setTargets(const std::string & targets)                 //!< add types which are allowed to activate the PortalEndPoint
     23            inline void setTarget(const std::string & target)                 //!< add types which are allowed to activate the PortalEndPoint
    2424            {
    25                 this->trigger_->addTargets(targets);
     25                this->trigger_->addTarget(target);
    2626            }
    2727           
Note: See TracChangeset for help on using the changeset viewer.