Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8043 in orxonox.OLD for branches/cr/src/lib/collision_reaction


Ignore:
Timestamp:
May 31, 2006, 8:48:29 PM (18 years ago)
Author:
patrick
Message:

cr: more reaction framework

Location:
branches/cr/src/lib/collision_reaction
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/collision_handle.cc

    r8029 r8043  
    3434  this->owner = owner;
    3535  this->type = type;
     36
     37  this->bCollided = false;
     38  this->bContinuousPoll = false;
     39  this->bDispatched = false;
     40  this->bStopOnFirstCollision = false;
    3641}
    3742
  • branches/cr/src/lib/collision_reaction/collision_handle.h

    r8029 r8043  
    3737    /** @returns true if this collision handle has already been dispatched */
    3838    inline bool isDispatched() const { return this->bDispatched; }
     39    /** @returns true if this handle should be pulled also if there are no collisions */
     40    inline bool isContinuousPoll() const { return this->bContinuousPoll; }
    3941
    4042    void handleCollisions();
     
    4951    CREngine::CRType              type;                    //!< the reaction type
    5052
     53    bool                          bContinuousPoll;         //!< if this is true
    5154    bool                          bDispatched;             //!< true if this handle has already been dispatched
    5255    bool                          bStopOnFirstCollision;   //!< true if the cd of this object should be terminated after one match
Note: See TracChangeset for help on using the changeset viewer.