Educational Game Platform
|
Go to the documentation of this file.
5 #include <QGraphicsScene>
6 #include <QGraphicsPixmapItem>
137 #endif // GAME2SCENE_H
bool * lock
Temporary lock boolean used to evaluate conditions between functions.
Definition: game2scene.h:80
void checkFinalCabo()
game2scene::checkFinalCabo()
Definition: game2scene.cpp:2575
void endgame_exit()
game2scene::endgame_exit()
Definition: game2scene.cpp:2751
QPushButton * exitButton
Call Cabo and end game.
Definition: game2scene.h:66
card * CPU1Card1
CPU1 card.
Definition: game2scene.h:32
int * cardSelectionAdversary
Integer helps with navigation when selecting cards.
Definition: game2scene.h:69
CPU * CPU1
First CPU opponent.
Definition: game2scene.h:25
QGraphicsPixmapItem * cross
Cross symbol used to let the user select cards.
Definition: game2scene.h:47
QString * mystr
String to display on text.
Definition: game2scene.h:87
card * tempPlayerDisplay
Temporary card to display whenever the player picks from the draw pile and needs to make a choice.
Definition: game2scene.h:44
QVector< int > * drawPileCards
Holds value in the draw pile.
Definition: game2scene.h:85
void goRightMove()
game2scene::goRightMove()
Definition: game2scene.cpp:1776
void checkTwoCards_startPlayer()
game2scene::checkTwoCards_startPlayer()
Definition: game2scene.cpp:1821
QPushButton * takeDiscard
Take from discard pile.
Definition: game2scene.h:60
card * CPU2Card1
CPU2 card.
Definition: game2scene.h:37
card * playerCard1
Player card.
Definition: game2scene.h:27
void cpuActions_1()
game2scene::cpuActions_1()
Definition: game2scene.cpp:758
card * CPU2Card2
CPU2 card.
Definition: game2scene.h:38
int * finalScorePlayer
Final score of the human player once the game ends.
Definition: game2scene.h:82
QPushButton * takeDraw
Take from draw pile.
Definition: game2scene.h:61
void gameLoop_main()
game2scene::gameLoop_main()
Definition: game2scene.cpp:677
bool * caboCalled
Check if cabo has been called.
Definition: game2scene.h:78
QGraphicsPixmapItem * drawPile
Text element in GUI.
Definition: game2scene.h:56
int * turnsPassed
Check how much turns have passed.
Definition: game2scene.h:74
QGraphicsPixmapItem * crossTemp
Second cross symbol used to let the user select cards.
Definition: game2scene.h:48
void keepcard_action()
game2scene::keepcard_action()
Definition: game2scene.cpp:3140
void checkOneCards_startPlayer()
game2scene::checkOneCards_startPlayer()
Definition: game2scene.cpp:1847
int * caboCaller
Integer helping check who called cabo.
Definition: game2scene.h:72
card * playerCard4
Player card.
Definition: game2scene.h:30
void spyCard_withenemy_phase3()
game2scene::spyCard_withenemy_phase3()
Definition: game2scene.cpp:2516
void spyCard_withenemy_phase2()
game2scene::spyCard_withenemy_phase2()
Definition: game2scene.cpp:2450
void getTwoCards_checkPhase1()
game2scene::getTwoCards_checkPhase1()
Definition: game2scene.cpp:1974
void swapCard_withenemy_phase3()
game2scene::swapCard_withenemy_phase3()
Definition: game2scene.cpp:2252
void getTwoCards_checkPhase2()
game2scene::getTwoCards_checkPhase2()
Definition: game2scene.cpp:2029
QGraphicsTextItem * discardpiletext
Text element in GUI.
Definition: game2scene.h:52
QPushButton * keep
Keep card picked from draw pile.
Definition: game2scene.h:62
bool * cputurn
Check if it is the CPU's turn.
Definition: game2scene.h:77
QGraphicsPixmapItem * discardPile
Text element in GUI.
Definition: game2scene.h:55
card * CPU1Card2
CPU1 card.
Definition: game2scene.h:33
QPushButton * callCabo
Call Cabo and end game.
Definition: game2scene.h:65
QGraphicsTextItem * opp2
Text element in GUI.
Definition: game2scene.h:54
void initUI()
game2scene::initUI()
Definition: game2scene.cpp:342
card * discardPileCard
Discard pile.
Definition: game2scene.h:43
void cpuActions_2()
game2scene::cpuActions_2()
Definition: game2scene.cpp:1153
QVector< int > * discardPileCards
Holds value in the discard pile.
Definition: game2scene.h:86
CPU * CPU2
Second CPU opponent.
Definition: game2scene.h:26
void selectPile()
game2scene::selectPile()
Definition: game2scene.cpp:2863
void discardcard_action()
game2scene::discardcard_action()
Definition: game2scene.cpp:3110
void discardAction()
game2scene::discardAction()
Definition: game2scene.cpp:2919
void getOneCards_checkPhase1()
game2scene::checkOneCards_checkPhase1()
Definition: game2scene.cpp:1873
QPushButton * goRight
Go left.
Definition: game2scene.h:59
card * drawPileCard
Draw pile.
Definition: game2scene.h:42
void swapCard_withenemy_phase1()
game2scene::swapCard_withenemy_phase1()
Definition: game2scene.cpp:2168
void checkDrawPile_amount()
game2scene::checkDrawPile_amount()
Definition: game2scene.cpp:3247
Definition: game2scene.h:20
void getOneCards_checkPhase2()
game2scene::getOneCards_checkPhase2()
Definition: game2scene.cpp:1923
card * playerCard3
Player card.
Definition: game2scene.h:29
void keepcard_action_phase1()
game2scene::keepcard_action_phase1()
Definition: game2scene.cpp:3173
card * CPU1Card3
CPU1 card.
Definition: game2scene.h:34
void goLeftMove()
game2scene::goLeftMove()
Definition: game2scene.cpp:1728
void exitgame_n_save()
game2scene::startCPUGame()
Definition: game2scene.cpp:215
bool * firstTurn
Check if the game just started.
Definition: game2scene.h:76
int * cardSelection
Integer helps with navigation when selecting cards.
Definition: game2scene.h:68
void initDiscardPile()
game2scene::initDiscardPile()
Definition: game2scene.cpp:472
void spyCard_withenemy_phase1()
game2scene::spyCard_withenemy_phase1()
Definition: game2scene.cpp:2424
void selectandswap_discard()
game2scene::selectandswap_discard()
Definition: game2scene.cpp:2950
QGraphicsTextItem * text
Text element in GUI.
Definition: game2scene.h:50
QPushButton * discard
do not keep picked card from draw pile
Definition: game2scene.h:63
void goLeftMoveAdv()
game2scene::goLeftMoveAdv()
Definition: game2scene.cpp:1571
void checkDrawPile_amount_CPUs()
game2scene::checkDrawPile_amount_CPUs()
Definition: game2scene.cpp:3294
QPushButton * select
Select button.
Definition: game2scene.h:64
void initAllCards()
game2scene::initAllCards()
Definition: game2scene.cpp:495
void startCPUGame()
game2scene::startCPUGame()
Definition: game2scene.cpp:203
void cpuTurn()
game2scene::cpuTurn()
Definition: game2scene.cpp:1553
void drawAction()
game2scene::drawAction()
Definition: game2scene.cpp:3025
QPushButton * goLeft
Go right.
Definition: game2scene.h:58
void caboCall()
game2scene::caboCall()
Definition: game2scene.cpp:2890
void load_game()
game2scene::load_game()
Definition: game2scene.cpp:90
void goRightMoveAdv()
game2scene::goRightMoveAdv()
Definition: game2scene.cpp:1650
QGraphicsTextItem * drawpiletext
Text element in GUI.
Definition: game2scene.h:51
void initDrawPile()
game2scene::initDrawPile()
Definition: game2scene.cpp:430
card * playerCard2
Player card.
Definition: game2scene.h:28
card * CPU2Card4
CPU2 card.
Definition: game2scene.h:40
card * CPU2Card3
CPU2 card.
Definition: game2scene.h:39
void swapCard_withenemy_phase2()
game2scene::swapCard_withenemy_phase2()
Definition: game2scene.cpp:2194
card * CPU1Card4
CPU1 card.
Definition: game2scene.h:35
QGraphicsTextItem * opp1
Text element in GUI.
Definition: game2scene.h:53
void getTwoCards_checkPhase3()
game2scene::getTwoCards_checkPhase3()
Definition: game2scene.cpp:2101