Educational Game Platform
gamescene_1_player.h
1 #ifndef GAMESCENE_1_PLAYER_H
2 #define GAMESCENE_1_PLAYER_H
3 
4 #include <QObject>
5 #include <QGraphicsPixmapItem>
6 #include <QGraphicsScene>
7 #include <QTimer>
8 #include <QSound>
9 #include <QThread>
10 
18 class gameScene_1_player : public QObject , public QGraphicsPixmapItem
19 {
20  Q_OBJECT
21 public:
22  explicit gameScene_1_player(QObject *parent = 0);
23  QGraphicsScene * parentScene;
24  bool *goForward;
25  int *id;
26  int *position;
27  int *newPosition;
28 
29 signals:
30 
31 public slots:
32 void moveInstantaneous();
33 void setup(int playerid);
34 
35 };
36 
37 #endif // GAMESCENE_1_PLAYER_H
gameScene_1_player::position
int * position
Used to store player position.
Definition: gamescene_1_player.h:26
gameScene_1_player::newPosition
int * newPosition
Used to store player position.
Definition: gamescene_1_player.h:27
gameScene_1_player
Definition: gamescene_1_player.h:19
gameScene_1_player::id
int * id
ID used for player1/player2.
Definition: gamescene_1_player.h:25
gameScene_1_player::moveInstantaneous
void moveInstantaneous()
gameScene_1_player::moveInstantaneous
Definition: gamescene_1_player.cpp:55
gameScene_1_player::goForward
bool * goForward
Bool used in movement logic.
Definition: gamescene_1_player.h:24
gameScene_1_player::setup
void setup(int playerid)
gameScene_1_player::setup
Definition: gamescene_1_player.cpp:34