Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 3:09:23 PM (18 years ago)
Author:
bensch
Message:

new_class_id: adapted the CREngine
@patrick: changed long classID to the new structure, where the Name and the new generic ID is stored.
Also i saw, that implementing CollisionHandle::targetList as a std::set would be much faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/collision_reaction/collision_handle.h

    r8490 r9688  
    2323class CollisionHandle : public BaseObject
    2424{
    25 
     25  NewObjectListDeclaration(CollisionHandle);
    2626  public:
    2727    CollisionHandle(WorldEntity* owner, CREngine::CRType type);
     
    3030    void reset();
    3131
    32     void addTarget(long target);
     32    void addTarget(const NewClassID& target);
    3333    Collision* registerCollision(WorldEntity* entityA, WorldEntity* entityB);
    3434    void registerSharedCollision(Collision* collision);
     
    6464
    6565    std::vector<Collision*>       collisionList;           //!< a list full of collisions
    66     std::vector<long>             targetList;              //!< a list of target classes for filtering
     66    std::vector<NewClassID>          targetList;              //!< a list of target classes for filtering @TODO TAKE SET INSTEAD OF VECTOR HERE
    6767
    6868    CollisionReaction*            collisionReaction;       //!< reference to the collision reaction object
Note: See TracChangeset for help on using the changeset viewer.