Changeset 9988 in orxonox.OLD for branches/coll_rect/src/lib/collision_reaction/collision_filter.h
- Timestamp:
- Dec 3, 2006, 4:55:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/lib/collision_reaction/collision_filter.h
r9980 r9988 63 63 void unsubscribeReactions(); 64 64 65 inline bool isSubscribed(CREngine::ReactionType type) const { /*if( this->validCRType(type)) return this->_filters[type] != NULL; else return false;*/}66 67 65 private: 68 66 std::vector<ClassID> _filters[CREngine::CR_NUMBER]; //!< an array of filter targets: for each collision type a list of filter objects … … 72 70 public: 73 71 /** @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; } 75 73 /** @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: 77 80 /** @returns true if this @param type Collision Reaction type is a valid number */ 78 81 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 81 83 82 84 private:
Note: See TracChangeset
for help on using the changeset viewer.