-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameObject.h
45 lines (37 loc) · 1.08 KB
/
GameObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
#include <QtGui/QApplication>
#include <QWidget>
#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsRectItem>
#include <QTimer>
#include <QTimeLine>
#include <QGraphicsItemAnimation>
#include <QPushButton>
#include <QApplication>
#include <QtAlgorithms>
#include <QListWidgetItem>
#include <QtGui>
#include <QtCore>
#include <QFont>
#include <QLabel>
#include <QListView>
#include <QGraphicsPixmapItem>
#include <cstdlib>
using namespace std;
/** GameObject superclass that holds core object functions */
class GameObject : public QGraphicsPixmapItem
{
public:
/** Returns derived object type, helps to differentiate between different inherited
classes
@return int representing object type*/
virtual int ObjectType() = 0;
/** bool value used to facilitate simulated object animation **/
bool moving;
/** int value used to facilitate simulated object animation **/
int GIFcounter;
};
#endif // GAMEOBJECT_H