Changeset 9892 in orxonox.OLD for branches/coll_rect/src/world_entities
- Timestamp:
- Oct 14, 2006, 1:25:47 AM (18 years ago)
- Location:
- branches/coll_rect/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/world_entities/world_entity.cc
r9889 r9892 302 302 * @param target1 a filter target (classID) 303 303 */ 304 void WorldEntity::subscribeReaction(CoRe::CREngine:: CRType type, const ClassID& target1)304 void WorldEntity::subscribeReaction(CoRe::CREngine::ReactionType type, const ClassID& target1) 305 305 { 306 306 this->subscribeReaction(type); … … 316 316 * @param target1 a filter target (classID) 317 317 */ 318 void WorldEntity::subscribeReaction(CoRe::CREngine:: CRType type, const ClassID& target1, const ClassID& target2)318 void WorldEntity::subscribeReaction(CoRe::CREngine::ReactionType type, const ClassID& target1, const ClassID& target2) 319 319 { 320 320 this->subscribeReaction(type); … … 331 331 * @param target1 a filter target (classID) 332 332 */ 333 void WorldEntity::subscribeReaction(CoRe::CREngine:: CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3)333 void WorldEntity::subscribeReaction(CoRe::CREngine::ReactionType type, const ClassID& target1, const ClassID& target2, const ClassID& target3) 334 334 { 335 335 this->subscribeReaction(type); … … 349 349 * @param ... the targets as classIDs 350 350 */ 351 void WorldEntity::subscribeReaction(CoRe::CREngine:: CRType type)351 void WorldEntity::subscribeReaction(CoRe::CREngine::ReactionType type) 352 352 { 353 353 if( this->collisionHandles[type] != NULL) … … 368 368 * @param type the reaction to unsubscribe 369 369 */ 370 void WorldEntity::unsubscribeReaction(CoRe::CREngine:: CRType type)370 void WorldEntity::unsubscribeReaction(CoRe::CREngine::ReactionType type) 371 371 { 372 372 if( this->collisionHandles[type] == NULL) … … 395 395 { 396 396 for( int i = 0; i < CoRe::CREngine::CR_NUMBER; i++) 397 this->unsubscribeReaction((CoRe::CREngine:: CRType)i);397 this->unsubscribeReaction((CoRe::CREngine::ReactionType)i); 398 398 399 399 // there are no reactions subscribed from now on … … 419 419 CoRe::CollisionEvent* c = CoRe::CREngine::getInstance()->popCollisionEventObject(); 420 420 assert(c != NULL); // if this should fail: we got not enough precached CollisionEvents: alter value in cr_defs.h 421 c->collide(COLLISION_TYPE_OBB, entityA, entityB, bvA, bvB);421 // c->collide(COLLISION_TYPE_OBB, entityA, entityB, bvA, bvB); 422 422 423 423 for( int i = 0; i < CoRe::CREngine::CR_NUMBER; ++i) … … 443 443 CoRe::CollisionEvent* c = CoRe::CREngine::getInstance()->popCollisionEventObject(); 444 444 assert(c != NULL); // if this should fail: we got not enough precached CollisionEvents: alter value in cr_defs.h 445 c->collide(type, entity, groundEntity, normal, position, bInWall);445 // c->collide(type, entity, groundEntity, normal, position, bInWall); 446 446 447 447 for( int i = 0; i < CoRe::CREngine::CR_NUMBER; ++i) -
branches/coll_rect/src/world_entities/world_entity.h
r9890 r9892 78 78 79 79 /* --- Collision Reaction Block --- */ 80 void subscribeReaction(CoRe::CREngine:: CRType type);81 void subscribeReaction(CoRe::CREngine:: CRType type, const ClassID& target1);82 void subscribeReaction(CoRe::CREngine:: CRType type, const ClassID& target1, const ClassID& target2);83 void subscribeReaction(CoRe::CREngine:: CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3);84 85 void unsubscribeReaction(CoRe::CREngine:: CRType type);80 void subscribeReaction(CoRe::CREngine::ReactionType type); 81 void subscribeReaction(CoRe::CREngine::ReactionType type, const ClassID& target1); 82 void subscribeReaction(CoRe::CREngine::ReactionType type, const ClassID& target1, const ClassID& target2); 83 void subscribeReaction(CoRe::CREngine::ReactionType type, const ClassID& target1, const ClassID& target2, const ClassID& target3); 84 85 void unsubscribeReaction(CoRe::CREngine::ReactionType type); 86 86 void unsubscribeReaction(); 87 87 … … 91 91 inline bool isReactive() const { return this->bReactive; } 92 92 93 CoRe::CollisionHandle* getCollisionHandle(CoRe::CREngine:: CRType type) const { return this->collisionHandles[type]; }93 CoRe::CollisionHandle* getCollisionHandle(CoRe::CREngine::ReactionType type) const { return this->collisionHandles[type]; } 94 94 95 95 /** @returns true if this entity is standing on ground (BSP model) */
Note: See TracChangeset
for help on using the changeset viewer.