Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2006, 4:13:57 PM (18 years ago)
Author:
patrick
Message:

freeing collision reaction engine from unused functions

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  
    134134
    135135
    136   /**
    137    * subscribes a WorldEntity for a CollisionReaction
    138    *  @param owner: the WE to subscribe
    139    *  @param type: the type of collision reaction to perform
    140    *  @return the newly created CollisionHandle
    141    */
    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 //   }
    149136
    150 
    151   /**
    152    * unsubscribe reaction from the reaction list
    153    *  @param collisionHandle the CollisionHandle to remove
    154    *  @param returns true if worked collrectly
    155    */
    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 //   }
    170137
    171138
  • branches/coll_rect/src/lib/collision_reaction/cr_engine.h

    r9895 r9984  
    2828  {
    2929    ObjectListDeclaration(CREngine);
     30
     31
    3032
    3133  public:
     
    6567    inline static CREngine* getInstance() { if (!singletonRef) singletonRef = new CREngine();  return singletonRef; };
    6668
    67 //     CollisionHandle* subscribeReaction(WorldEntity* worldEntity, ReactionType type);
    68 //     bool unsubscribeReaction(CollisionHandle* collisionHandle);
    69 
    7069
    7170    Collision* popCollisionObject();
Note: See TracChangeset for help on using the changeset viewer.