17 lines
220 B
C++
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
|