Changeset 7927 in orxonox.OLD for trunk/src/lib/collision_reaction/collision_handle.h
- Timestamp:
- May 28, 2006, 6:46:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_reaction/collision_handle.h
r7841 r7927 8 8 9 9 #include "base_object.h" 10 #include "cr_engine.h" 11 12 #include <vector> 13 10 14 11 15 class Collision; 16 class WorldEntity; 17 18 // struct CRType; 19 12 20 13 21 //! A class for defining collision reactions and storing events … … 15 23 16 24 public: 17 CollisionHandle( );25 CollisionHandle(WorldEntity* owner, CREngine::CRType type); 18 26 virtual ~CollisionHandle(); 27 28 29 void addTarget(); 19 30 20 31 void registerCollision(Collision* collision); … … 25 36 private: 26 37 WorldEntity* owner; //!< the worldenity this reaction will be applied on 27 classID targetClass; //!< the entities triggering the handle38 CREngine::CRType type; //!< the reaction type 28 39 29 40 bool bDispatched; //!< true if this handle has already been dispatched 30 bool bStopOnFirstCollision 41 bool bStopOnFirstCollision; //!< true if the cd of this object should be terminated after one match 31 42 32 43 std::vector<Collision*> collisionList; //!< a list full of collisions 33 std::vector< classID>targetList; //!< a list of target classes for filtering44 std::vector<long> targetList; //!< a list of target classes for filtering 34 45 35 46 };
Note: See TracChangeset
for help on using the changeset viewer.