Callback-Example/PhysicsObject.h

17 lines
220 B
C
Raw Normal View History

#ifndef PHYSICSOBJECT_H
#define PHYSICSOBJECT_H
#include "IPhysics.h"
class PhysicsObject
: public IPhysics
{
public:
PhysicsObject() : IPhysics(&x) {}
int GetX() { Update(); return x; }
private:
int x;
};
#endif