Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2006, 4:28:11 PM (19 years ago)
Author:
patrick
Message:

giving the crengine the ability to check for collisions itself, collision tube only used as container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/lib/collision_reaction/cr_engine.h

    r9984 r9985  
    2929    ObjectListDeclaration(CREngine);
    3030
     31    typedef std::vector<Collision*>::iterator        CollisionIterator;
     32    typedef std::vector<CollisionEvent*>::iterator   CollisionEventIterator;
    3133
    3234
     
    7072    Collision* popCollisionObject();
    7173    CollisionEvent* popCollisionEventObject();
    72     void reset();
    7374
    7475    void handleCollisions();
     
    8586
    8687  private:
    87     //std::vector<CollisionHandle*>       collisionHandles;         //!< list with the collision handles
     88    static CREngine*                    singletonRef;             //!< the reference to the CREngine object (singleton)
    8889
    8990    std::vector<Collision*>             collisionsUsed;           //!< a list of used, cached collisions
     
    9394    std::vector<CollisionEvent*>        collisionEventsUnused;    //!< a list of unused, cached collision events
    9495
    95     static CREngine*                    singletonRef;             //!< the reference to the CREngine object (singleton)
     96    CollisionReaction*                  _reactionList[CREngine::CR_NUMBER];  //!< the collision reaction list containing all reactions types
     97
     98
    9699  };
    97100
Note: See TracChangeset for help on using the changeset viewer.