Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 4:55:19 PM (17 years ago)
Author:
patrick
Message:

removed most of the compiler bugs. more to come

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/lib/collision_reaction/collision_filter.h

    r9980 r9988  
    6363    void unsubscribeReactions();
    6464
    65     inline bool isSubscribed(CREngine::ReactionType type) const { /*if( this->validCRType(type)) return this->_filters[type] != NULL; else return false;*/}
    66 
    6765  private:
    6866    std::vector<ClassID>          _filters[CREngine::CR_NUMBER];  //!< an array of filter targets: for each collision type a list of filter objects
     
    7270  public:
    7371    /** @returns true if this handle should be pulled also if there are no collisions, can also be set with this function (reference)*/
    74     inline bool& bContinousPoll() { return this->_bContinuousPoll; }
     72    inline bool isContinousPoll() { return this->_bContinuousPoll; }
    7573    /** @returns true if this filter should be pulled always */
    76     inline bool bContinousPoll() const { return this->_bContinuousPoll; }
     74    inline bool isContinousPoll() const { return this->_bContinuousPoll; }
     75    /** @returns true if this filter is reactive i.e. at least one filter criterion installed */
     76    inline bool isReactive() const { return this->_bReactive; }
     77
     78
     79  private:
    7780    /** @returns true if this @param type Collision Reaction type is a valid number */
    7881    inline bool validCRType(const CREngine::ReactionType& type) const {return (type >= 0 && type < CREngine::CR_NUMBER); }
    79     /** @returns true if this filter is reactive i.e. at least one filter criterion installed */
    80     inline bool bReactive() const { return this->_bReactive; }
     82
    8183
    8284  private:
Note: See TracChangeset for help on using the changeset viewer.