ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
physicalobject.h
Go to the documentation of this file.
1 #ifndef PHYSICALOBJECT_H
2 #define PHYSICALOBJECT_H
3 
4 #include <Box2D/Box2D.h>
5 #include <QGraphicsItem>
6 
14 {
15 public:
17  virtual ~PhysicalObject() {}
18 
23  virtual void step(float dt) { Q_UNUSED(dt); }
24 
28  virtual void stepGraphics() {}
29 
34  virtual b2Body *body() const = 0;
35 
40  virtual QGraphicsItem *item() const = 0;
41 };
42 
43 #endif // PHYSICALOBJECT_H