Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 13, 2006, 3:57:44 PM (18 years ago)
Author:
patrick
Message:

added namspacing to collision reaction. now comes the harder part :D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/world_entities/world_entity.h

    r9888 r9889  
    8282
    8383  /* --- Collision Reaction Block --- */
    84   void subscribeReaction(CREngine::CRType type);
    85   void subscribeReaction(CREngine::CRType type, const ClassID& target1);
    86   void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2);
    87   void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3);
    88   void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3, const ClassID& target4);
    89 
    90   void unsubscribeReaction(CREngine::CRType type);
     84  void subscribeReaction(CoRe::CREngine::CRType type);
     85  void subscribeReaction(CoRe::CREngine::CRType type, const ClassID& target1);
     86  void subscribeReaction(CoRe::CREngine::CRType type, const ClassID& target1, const ClassID& target2);
     87  void subscribeReaction(CoRe::CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3);
     88
     89  void unsubscribeReaction(CoRe::CREngine::CRType type);
    9190  void unsubscribeReaction();
    9291
     
    9695  inline bool isReactive() const { return this->bReactive; }
    9796
    98   CollisionHandle* getCollisionHandle(CREngine::CRType type) const { return this->collisionHandles[type]; }
     97  CoRe::CollisionHandle* getCollisionHandle(CoRe::CREngine::CRType type) const { return this->collisionHandles[type]; }
    9998
    10099  /** @returns true if this entity is standing on ground (BSP model) */
     
    212211  int                     healthMax_handle;
    213212
    214   CollisionHandle*        collisionHandles[CREngine::CR_NUMBER];  //!< the list of the collision reactions
     213  CoRe::CollisionHandle*  collisionHandles[CoRe::CREngine::CR_NUMBER];  //!< the list of the collision reactions
    215214  bool                    bReactive;                              //!< true if there is at least one collision reaction subscibed
     215
    216216
    217217  PhysicsInterface        physicsInterface;                //!< the physics object of the WorldEntity
Note: See TracChangeset for help on using the changeset viewer.