Changeset 9715 in orxonox.OLD for branches/new_class_id/src/lib/collision_reaction
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/collision_reaction
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/collision_reaction/collision_handle.cc
r9688 r9715 30 30 31 31 32 NewObjectListDefinition(CollisionHandle);32 ObjectListDefinition(CollisionHandle); 33 33 34 34 /** … … 94 94 * @param classID the classid to look for 95 95 */ 96 void CollisionHandle::addTarget(const NewClassID& target)96 void CollisionHandle::addTarget(const ClassID& target) 97 97 { 98 98 // make sure there is no dublicate 99 std::vector< NewClassID>::iterator it = this->targetList.begin();99 std::vector<ClassID>::iterator it = this->targetList.begin(); 100 100 for( ; it < this->targetList.end(); it++) 101 101 if( (*it) == target) … … 227 227 bool CollisionHandle::filterCollisionEvent(CollisionEvent* collisionEvent) 228 228 { 229 std::vector< NewClassID>::iterator it = this->targetList.begin();229 std::vector<ClassID>::iterator it = this->targetList.begin(); 230 230 for(; it < this->targetList.end(); it++) 231 231 { … … 276 276 bool CollisionHandle::filterCollision(Collision* collision) 277 277 { 278 std::vector< NewClassID>::iterator it = this->targetList.begin();278 std::vector<ClassID>::iterator it = this->targetList.begin(); 279 279 for(; it < this->targetList.end(); it++) 280 280 { -
branches/new_class_id/src/lib/collision_reaction/collision_handle.h
r9688 r9715 23 23 class CollisionHandle : public BaseObject 24 24 { 25 NewObjectListDeclaration(CollisionHandle);25 ObjectListDeclaration(CollisionHandle); 26 26 public: 27 27 CollisionHandle(WorldEntity* owner, CREngine::CRType type); … … 30 30 void reset(); 31 31 32 void addTarget(const NewClassID& target);32 void addTarget(const ClassID& target); 33 33 Collision* registerCollision(WorldEntity* entityA, WorldEntity* entityB); 34 34 void registerSharedCollision(Collision* collision); … … 64 64 65 65 std::vector<Collision*> collisionList; //!< a list full of collisions 66 std::vector< NewClassID> targetList; //!< a list of target classes for filtering @TODO TAKE SET INSTEAD OF VECTOR HERE66 std::vector<ClassID> targetList; //!< a list of target classes for filtering @TODO TAKE SET INSTEAD OF VECTOR HERE 67 67 68 68 CollisionReaction* collisionReaction; //!< reference to the collision reaction object -
branches/new_class_id/src/lib/collision_reaction/collision_reaction.cc
r9688 r9715 20 20 21 21 22 NewObjectListDefinition(CollisionReaction);22 ObjectListDefinition(CollisionReaction); 23 23 24 24 /** -
branches/new_class_id/src/lib/collision_reaction/collision_reaction.h
r9688 r9715 18 18 class CollisionReaction : public BaseObject 19 19 { 20 NewObjectListDeclaration(CollisionReaction);20 ObjectListDeclaration(CollisionReaction); 21 21 public: 22 22 CollisionReaction(); -
branches/new_class_id/src/lib/collision_reaction/cr_engine.cc
r9688 r9715 29 29 30 30 31 NewObjectListDefinition(CREngine);31 ObjectListDefinition(CREngine); 32 32 /** 33 33 * standard constructor -
branches/new_class_id/src/lib/collision_reaction/cr_engine.h
r9688 r9715 25 25 class CREngine : public BaseObject 26 26 { 27 NewObjectListDeclaration(CREngine);27 ObjectListDeclaration(CREngine); 28 28 29 29 public: -
branches/new_class_id/src/lib/collision_reaction/cr_object_damage.cc
r9688 r9715 28 28 29 29 30 NewObjectListDefinition(CRObjectDamage);30 ObjectListDefinition(CRObjectDamage); 31 31 /** 32 32 * standard constructor -
branches/new_class_id/src/lib/collision_reaction/cr_object_damage.h
r9688 r9715 15 15 class CRObjectDamage : public CollisionReaction 16 16 { 17 NewObjectListDeclaration(CRObjectDamage);17 ObjectListDeclaration(CRObjectDamage); 18 18 public: 19 19 CRObjectDamage(); -
branches/new_class_id/src/lib/collision_reaction/cr_physics_full_walk.cc
r9688 r9715 35 35 36 36 37 NewObjectListDefinition(CRPhysicsFullWalk);37 ObjectListDefinition(CRPhysicsFullWalk); 38 38 /** 39 39 * standard constructor -
branches/new_class_id/src/lib/collision_reaction/cr_physics_full_walk.h
r9688 r9715 15 15 class CRPhysicsFullWalk : public CollisionReaction 16 16 { 17 NewObjectListDeclaration(CRPhysicsFullWalk);17 ObjectListDeclaration(CRPhysicsFullWalk); 18 18 public: 19 19 CRPhysicsFullWalk(); -
branches/new_class_id/src/lib/collision_reaction/cr_physics_ground_walk.cc
r9688 r9715 35 35 36 36 37 NewObjectListDefinition(CRPhysicsGroundWalk);37 ObjectListDefinition(CRPhysicsGroundWalk); 38 38 /** 39 39 * standard constructor -
branches/new_class_id/src/lib/collision_reaction/cr_physics_ground_walk.h
r9688 r9715 15 15 class CRPhysicsGroundWalk : public CollisionReaction 16 16 { 17 NewObjectListDeclaration(CRPhysicsGroundWalk);17 ObjectListDeclaration(CRPhysicsGroundWalk); 18 18 public: 19 19 CRPhysicsGroundWalk();
Note: See TracChangeset
for help on using the changeset viewer.