Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2006, 6:46:33 PM (19 years ago)
Author:
patrick
Message:

trunk: added more cr framework, i will branche soon with this stuff so the trunk dosn't get involved to much in the development phase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_reaction/collision_handle.h

    r7841 r7927  
    88
    99#include "base_object.h"
     10#include "cr_engine.h"
     11
     12#include <vector>
     13
    1014
    1115class Collision;
     16class WorldEntity;
     17
     18// struct CRType;
     19
    1220
    1321//! A class for defining collision reactions and storing events
     
    1523
    1624 public:
    17   CollisionHandle();
     25  CollisionHandle(WorldEntity* owner, CREngine::CRType type);
    1826  virtual ~CollisionHandle();
     27
     28
     29  void addTarget();
    1930
    2031  void registerCollision(Collision* collision);
     
    2536 private:
    2637   WorldEntity*                  owner;                   //!< the worldenity this reaction will be applied on
    27    classID                       targetClass;             //!< the entities triggering the handle
     38   CREngine::CRType              type;                    //!< the reaction type
    2839
    2940   bool                          bDispatched;             //!< true if this handle has already been dispatched
    30    bool                          bStopOnFirstCollision    //!< true if the cd of this object should be terminated after one match
     41   bool                          bStopOnFirstCollision;   //!< true if the cd of this object should be terminated after one match
    3142
    3243   std::vector<Collision*>       collisionList;           //!< a list full of collisions
    33    std::vector<classID>          targetList;              //!< a list of target classes for filtering
     44   std::vector<long>             targetList;              //!< a list of target classes for filtering
    3445
    3546};
Note: See TracChangeset for help on using the changeset viewer.