|
Educational Game Platform
|
Public Slots | |
| void | generateBoard () |
| gameScene_1::generateBoard More... | |
| void | selectLeft () |
| gameScene_1::selectLeft More... | |
| void | selectRight () |
| gameScene_1::selectRight More... | |
| void | diceRoll () |
| gameScene_1::diceRoll More... | |
| void | checkSnakeLadder () |
| void | winCondition () |
| gameScene_1::winCondition More... | |
| void | movePlayer () |
| gameScene_1::movePlayer More... | |
| void | movePlayerOpp () |
| gameScene_1::movePlayerOpp More... | |
| void | backToMenu () |
| gameScene_1::backToMenu More... | |
| void | loadGame (int posp1, int posp2, bool turn) |
| gameScene_1::loadGame More... | |
Public Member Functions | |
| gameScene_1 (QObject *parent=0) | |
Public Attributes | |
| QGraphicsTextItem * | text |
| Text element in GUI. | |
| QGraphicsTextItem * | text2 |
| Text element in GUI. | |
| QGraphicsTextItem * | text3 |
| Text element in GUI. | |
| QPushButton * | rolldice |
| Button associated to rolling the dices. | |
| QPushButton * | pickdice1 |
| Button associated to pick a dice. | |
| QPushButton * | pickdice2 |
| Button associated to pick a dice. | |
| QPushButton * | backtomenu |
| Button associated to going back to menu. | |
| gameScene_1_player * | player1 |
| Player 1 entity. | |
| gameScene_1_player * | player2 |
| Player 2 entity. | |
| gameScene_1_dice * | dice1 |
| Dice 1 entity. | |
| gameScene_1_dice * | dice2 |
| Dice 2 entity. | |
| gamescene_1_ladderSnake * | ladderSnake |
| Ladder&Snake entity. | |
| QGraphicsRectItem * | square |
| Boxes used to denote ladder/snakes. | |
| int * | ladderPos |
| Array used to store Ladder start/end positions. | |
| int * | snakePos |
| Array used to store Snake start/end positions. | |
| bool * | firstRoll |
| Bool denoting first roll status. | |
| bool * | playerTurn |
| Bool denoting player turn. | |
| bool * | sidePick |
| Bool denoting left/right dice pick. | |
| bool * | winState |
| Bool denoting win state. | |
| bool * | winner |
| bool * | CPU |
| Bool denoting CPU adversary / human adversary. | |
|
slot |
Go back to main menu
|
slot |
Roll dice & implements game loop
|
slot |
Generate board dynamically ( add snakes/ladders) from a text file
|
slot |
| posp1 | : player1 position |
| posp2 | : player2 position |
| turn | : bool which denotes which player's turn it is |
Loads existing game, if there is any
|
slot |
Move player after a dice roll
|
slot |
Move player after a dice roll
|
slot |
This function is executed when the player selects the left dice
|
slot |
This function is executed when the player selects the right dice
|
slot |
Check if the win condition ( player reaches case 100) is satisfied