Newer
Older
Grégoire Payen de La Garanderie
committed
#ifndef TABLE_H_INCLUDED
#define TABLE_H_INCLUDED
#include <QWidget>
#include "element.h"
#include <Box2D/Box2D.h>
Grégoire Payen de La Garanderie
committed
class Table : public QWidget
{
private:
int dt;
std::vector<class Element*> elements;
Grégoire Payen de La Garanderie
committed
std::vector<class Robot*> robots;
b2World world;
b2Body* tableBody;
Grégoire Payen de La Garanderie
committed
static const int tableWidth = 3000;
static const int tableHeight = 2100;
//static const int tableWidth = 2100;
//static const int tableHeight = 3000;
Table(QWidget* widget);
virtual ~Table();
void update(int dt);
void paintEvent(QPaintEvent* evt);
void keyPressEvent(QKeyEvent* evt, bool press);
Grégoire Payen de La Garanderie
committed
};
#endif