Educational Game Platform
gamescene_1_ladderSnake.h
1 #ifndef GAMESCENE_1_LADDERSNAKE_H
2 #define GAMESCENE_1_LADDERSNAKE_H
3 
4 #include <QtMath>
5 #include <QObject>
6 #include <QGraphicsPixmapItem>
7 #include <QGraphicsScene>
8 
15 class gamescene_1_ladderSnake : public QObject , public QGraphicsPixmapItem
16 {
17  Q_OBJECT
18 public:
19  explicit gamescene_1_ladderSnake(QObject *parent = 0);
20  QPixmap * image;
21  int *id;
22  bool *goForward;
23  int *posXstart;
24  int *posXend;
25  int *posYstart;
26  int *posYend;
27  int *posXtemp;
28  int *posYtemp;
31  double *size;
32  double *angle;
33  double *centerX;
34  double *centerY;
35  double *tempLength;
36 
37 signals:
38 
39 public slots:
40 void initLadder(int seed,int start,int end);
41 int getXYcase(int caseNum, int xy);
42 };
43 
44 #endif // gamescene_1_ladderSnake_H
gamescene_1_ladderSnake::posXtemp
int * posXtemp
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:27
gamescene_1_ladderSnake::tempLength
double * tempLength
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:35
gamescene_1_ladderSnake::goForward
bool * goForward
Bool associated to movement logic.
Definition: gamescene_1_ladderSnake.h:22
gamescene_1_ladderSnake::posYtempFunc
int * posYtempFunc
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:30
gamescene_1_ladderSnake::posXend
int * posXend
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:24
gamescene_1_ladderSnake::size
double * size
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:31
gamescene_1_ladderSnake::posYstart
int * posYstart
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:25
gamescene_1_ladderSnake::centerX
double * centerX
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:33
gamescene_1_ladderSnake::posYend
int * posYend
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:26
gamescene_1_ladderSnake::image
QPixmap * image
Image associated to ladder/snake.
Definition: gamescene_1_ladderSnake.h:20
gamescene_1_ladderSnake::id
int * id
Id associated to ladder/snake.
Definition: gamescene_1_ladderSnake.h:21
gamescene_1_ladderSnake::getXYcase
int getXYcase(int caseNum, int xy)
gamescene_1_ladderSnake::getXYcase
Definition: gamescene_1_ladderSnake.cpp:124
gamescene_1_ladderSnake::posXstart
int * posXstart
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:23
gamescene_1_ladderSnake::angle
double * angle
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:32
gamescene_1_ladderSnake::posYtemp
int * posYtemp
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:28
gamescene_1_ladderSnake::centerY
double * centerY
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:34
gamescene_1_ladderSnake::posXtempFunc
int * posXtempFunc
Temp value used in calculations across functions.
Definition: gamescene_1_ladderSnake.h:29
gamescene_1_ladderSnake::initLadder
void initLadder(int seed, int start, int end)
gamescene_1_ladderSnake::initLadder
Definition: gamescene_1_ladderSnake.cpp:58
gamescene_1_ladderSnake
Definition: gamescene_1_ladderSnake.h:16