Changeset 9984 in orxonox.OLD for branches/coll_rect
- Timestamp:
- Dec 2, 2006, 4:13:57 PM (18 years ago)
- Location:
- branches/coll_rect/src/lib/collision_reaction
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/lib/collision_reaction/cr_engine.cc
r9895 r9984 134 134 135 135 136 /**137 * subscribes a WorldEntity for a CollisionReaction138 * @param owner: the WE to subscribe139 * @param type: the type of collision reaction to perform140 * @return the newly created CollisionHandle141 */142 // CollisionHandle* CREngine::subscribeReaction(WorldEntity* owner, ReactionType type)143 // {144 // CollisionHandle* ch = new CollisionHandle(owner, type);145 // this->collisionHandles.push_back(ch);146 //147 // return ch;148 // }149 136 150 151 /**152 * unsubscribe reaction from the reaction list153 * @param collisionHandle the CollisionHandle to remove154 * @param returns true if worked collrectly155 */156 // bool CREngine::unsubscribeReaction(CollisionHandle* collisionHandle)157 // {158 // std::vector<CollisionHandle*>::iterator it;159 // for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++)160 // {161 // if( *it == collisionHandle)162 // {163 // this->collisionHandles.erase(it);164 // delete collisionHandle;165 // return true;166 // }167 // }168 // return false;169 // }170 137 171 138 -
branches/coll_rect/src/lib/collision_reaction/cr_engine.h
r9895 r9984 28 28 { 29 29 ObjectListDeclaration(CREngine); 30 31 30 32 31 33 public: … … 65 67 inline static CREngine* getInstance() { if (!singletonRef) singletonRef = new CREngine(); return singletonRef; }; 66 68 67 // CollisionHandle* subscribeReaction(WorldEntity* worldEntity, ReactionType type);68 // bool unsubscribeReaction(CollisionHandle* collisionHandle);69 70 69 71 70 Collision* popCollisionObject();
Note: See TracChangeset
for help on using the changeset viewer.