Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2515 for code/branches


Ignore:
Timestamp:
Dec 21, 2008, 3:13:57 PM (16 years ago)
Author:
rgrieder
Message:

Callbacks with function pointers work virtually after all.

Location:
code/branches/presentation/src/orxonox/objects/collisionshapes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/collisionshapes/CollisionShape.cc

    r2514 r2515  
    8080    void CollisionShape::registerVariables()
    8181    {
    82         registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<CollisionShape>(this, &CollisionShape::parentChangedCallback));
     82        registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<CollisionShape>(this, &CollisionShape::parentChanged));
    8383    }
    8484
  • code/branches/presentation/src/orxonox/objects/collisionshapes/CollisionShape.h

    r2514 r2515  
    8181            virtual void updateParent();
    8282            virtual void parentChanged();
    83             // Note: This is required because the NetworkCallback will not call functions virtually
    84             void parentChangedCallback() { this->parentChanged(); }
    8583            virtual btCollisionShape* createNewShape() const = 0;
    8684
Note: See TracChangeset for help on using the changeset viewer.