Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2005, 1:06:44 AM (19 years ago)
Author:
patrick
Message:

collision_detection: and again a heavy cleanup in the function arguments

Location:
branches/collision_detection/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/world_entities/world_entity.cc

    r5717 r5718  
    147147 * Implement behaviour like damage application or other miscellaneous collision stuff in this function
    148148 */
    149 void WorldEntity::collidesWith(WorldEntity* entity, const Vector& location)
     149void WorldEntity::collidesWith(const WorldEntity& entity, const Vector& location) const
    150150{
    151151  /**
  • branches/collision_detection/src/world_entities/world_entity.h

    r5717 r5718  
    4343  virtual void tick (float time);
    4444  virtual void draw () const;
    45   virtual void collidesWith (WorldEntity* entity, const Vector& location);
     45  virtual void collidesWith (const WorldEntity& entity, const Vector& location) const;
    4646
    4747  void drawBVTree(unsigned int depth, int drawMode) const;
Note: See TracChangeset for help on using the changeset viewer.