Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 4:55:19 PM (17 years ago)
Author:
patrick
Message:

removed most of the compiler bugs. more to come

File:
1 edited

Legend:

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

    r9986 r9988  
    8888  void unsubscribeReactions();
    8989
    90   inline bool isSubscribed(CoRe::CREngine::ReactionType type) const { return this->_collisionFilter.isSubscribed( type); }
    91 
    9290  /** @return true if there is at least on collision reaction subscribed */
    93   inline bool isReactive() const { return this->bReactive; }
     91  inline bool isReactive() const { return this->_collisionFilter.isReactive(); }
    9492
    9593  /** @param worldEntity the world entity to be checked @returns true if there is a collisionreaction registered for the worldEntity */
    96   inline bool isReactive( const WorldEntity& worldEntity) const { return this->isReactive() || (this->_collisionFilter(worldEntity)); }
     94  inline bool isReactive( const WorldEntity& worldEntity) const { return this->_collisionFilter.isReactive() || (this->_collisionFilter(worldEntity)); }
    9795  /** @param worldEntity the world entity to be checked @param type special reaction type @returns true if collision reaction reg. */
    98   inline bool isReactive( const WorldEntity& worldEntity, CoRe::CREngine::ReactionType type) const
    99   { return this->isReactive() || (this->_collisionFilter(worldEntity, type)); }
     96  inline bool isReactive( const WorldEntity& worldEntity, const CoRe::CREngine::ReactionType& type) const
     97  { return this->_collisionFilter.isReactive() || (this->_collisionFilter(worldEntity, type)); }
    10098
    10199
     
    103101
    104102  /** @returns true if this entity is standing on ground (BSP model) */
    105   bool isOnGround() const { return this->bOnGround; }
     103  bool isOnGround() const { return this->_bOnGround; }
    106104  /** @param flag: marks if this entity is standing on ground */
    107   void setOnGround(bool flag) { this->bOnGround = flag; }
     105  void setOnGround(bool flag) { this->_bOnGround = flag; }
    108106
    109107  virtual void destroy( WorldEntity* killer );
     
    201199  /* collision reaction stuff */
    202200  CoRe::CollisionFilter   _collisionFilter;                //!< filter for collision event filtering (not every entity listens to all collisions)
    203   bool                    bReactive;                       //!< true if there is at least one collision reaction subscibed
    204 
     201  bool                    _bOnGround;                      //!< flag true if the object is on the ground
    205202
    206203  PhysicsInterface        physicsInterface;                //!< the physics object of the WorldEntity
    207   bool                    bOnGround;                       //!< true if this entity is standing on the ground
    208204
    209205  /* network help structures */
Note: See TracChangeset for help on using the changeset viewer.