Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2009, 10:19:38 PM (15 years ago)
Author:
landauf
Message:

merged libraries branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/worldentities/triggers/PlayerTrigger.h

    r3280 r5693  
    5252        PlayerTrigger(BaseObject* creator);
    5353        virtual ~PlayerTrigger();
    54        
     54
    5555        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a PlayerTrigger object through XML.
    56        
     56
    5757        /**
    5858        @brief Returns the player that triggered the PlayerTrigger.
     
    6161        inline Pawn* getTriggeringPlayer(void) const
    6262            { return this->player_; }
    63        
     63
    6464        /**
    6565        @brief Checks whether the PlayerTrigger normally returns a ControllableEntity.
     
    6868        inline bool isForPlayer(void) const
    6969           { return this->isForPlayer_; }
    70            
     70
    7171    protected:
    7272        virtual bool isTriggered(TriggerMode::Value mode) = 0;
    73        
     73
    7474        /**
    7575        @brief Set the player that triggered the PlayerTrigger. This is normally done by classes inheriting vom PlayerTrigger.
     
    8181            /**
    8282            @brief Set whether the PlayerTrigger normally is triggered by ControllableEntities.
    83             @param isForPlayer Should be true when the PlayerTrigger schould be set to normally be triggered by ControllableEntities, false if not.
     83            @param isForPlayer Should be true when the PlayerTrigger should be set to normally be triggered by ControllableEntities, false if not.
    8484            */
    8585        inline void setForPlayer(bool isForPlayer)
    8686           { this->isForPlayer_ = isForPlayer; }
    87        
     87
    8888    private:
    8989        Pawn* player_; //!< The player that triggered the PlayerTrigger.
    90         bool isForPlayer_; //!< Is true when the PlayerTrigger schould be set to normally be triggered by ControllableEntities.
    91    
     90        bool isForPlayer_; //!< Is true when the PlayerTrigger should be set to normally be triggered by ControllableEntities.
     91
    9292    };
    9393
Note: See TracChangeset for help on using the changeset viewer.