Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2006, 11:14:54 PM (19 years ago)
Author:
patrick
Message:

cr: double sidded collision events updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/collision.h

    r8106 r8108  
    3131    inline WorldEntity* getEntityB() const { return this->entityB; }
    3232    /** @return true if Entity A collides */
    33     inline bool isEntityACollide() { return this->entityACollide; }
     33    inline bool isEntityACollide() const { return this->entityACollide; }
     34    /** sets the flag if it reacts @param flag true if it should react on entityA*/
     35    inline void setEntityACollide(bool flag) { this->entityACollide = flag; }
    3436    /** @return true if Entity B collides */
    35     inline bool isEntityBCollide() { return this->entityBCollide; }
     37    inline bool isEntityBCollide() const { return this->entityBCollide; }
     38    /** sets the flag if it reacts @param flag true if it should react on entityB*/
     39    inline void setEntityBCollide(bool flag) { this->entityACollide = flag; }
    3640
    3741    /** @returns true if this Collision has already been dispatched */
     
    3943
    4044    /** registers a @param event CollisionEvent to take place */
    41     inline void registerCollisionEvent(CollisionEvent* event) { this->collisionEvents.push_back(event); }
     45    inline void registerCollisionEvent(CollisionEvent* event) { this->collisionEvents.push_back(event); this->bDispatched = false;}
    4246    /** @returns a vector of collision events */
    4347    inline const std::vector<CollisionEvent*>& getCollisionEvents() const { return this->collisionEvents; }
    44 
    4548
    4649
Note: See TracChangeset for help on using the changeset viewer.