Callback-Example/PhysicsObject.h
2017-05-23 16:40:02 -04:00

17 lines
220 B
C++

#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