Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2006, 1:25:47 AM (18 years ago)
Author:
patrick
Message:

new interface to collision registers, more transparent. some more functionality

File:
1 edited

Legend:

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

    r9891 r9892  
    5353
    5454
    55     inline bool match(const WorldEntity& entityA, WorldEntity& entityB) const { return (this->entityA == &entityA && this->entityB == &entityB); }
     55    inline bool match(const WorldEntity& entityA, WorldEntity& entityB) const {
     56      return ((this->entityA == &entityA && this->entityB == &entityB) || (this->entityA == &entityB && this->entityB == &entityA)); }
    5657    /** @returns true if this Collision has already been dispatched */
    5758    inline bool isDispatched() { return this->bDispatched; }
Note: See TracChangeset for help on using the changeset viewer.