Educational Game Platform
|
Public Member Functions | |
game2scene (QObject *parent=0) | |
Public Attributes | |
CPU * | CPU1 |
First CPU opponent. | |
CPU * | CPU2 |
Second CPU opponent. | |
card * | playerCard1 |
Player card. | |
card * | playerCard2 |
Player card. | |
card * | playerCard3 |
Player card. | |
card * | playerCard4 |
Player card. | |
card * | CPU1Card1 |
CPU1 card. | |
card * | CPU1Card2 |
CPU1 card. | |
card * | CPU1Card3 |
CPU1 card. | |
card * | CPU1Card4 |
CPU1 card. | |
card * | CPU2Card1 |
CPU2 card. | |
card * | CPU2Card2 |
CPU2 card. | |
card * | CPU2Card3 |
CPU2 card. | |
card * | CPU2Card4 |
CPU2 card. | |
card * | drawPileCard |
Draw pile. | |
card * | discardPileCard |
Discard pile. | |
card * | tempPlayerDisplay |
Temporary card to display whenever the player picks from the draw pile and needs to make a choice. | |
QGraphicsPixmapItem * | cross |
Cross symbol used to let the user select cards. | |
QGraphicsPixmapItem * | crossTemp |
Second cross symbol used to let the user select cards. | |
QGraphicsTextItem * | text |
Text element in GUI. | |
QGraphicsTextItem * | drawpiletext |
Text element in GUI. | |
QGraphicsTextItem * | discardpiletext |
Text element in GUI. | |
QGraphicsTextItem * | opp1 |
Text element in GUI. | |
QGraphicsTextItem * | opp2 |
Text element in GUI. | |
QGraphicsPixmapItem * | discardPile |
Text element in GUI. | |
QGraphicsPixmapItem * | drawPile |
Text element in GUI. | |
QPushButton * | goLeft |
Go right. | |
QPushButton * | goRight |
Go left. | |
QPushButton * | takeDiscard |
Take from discard pile. | |
QPushButton * | takeDraw |
Take from draw pile. | |
QPushButton * | keep |
Keep card picked from draw pile. | |
QPushButton * | discard |
do not keep picked card from draw pile | |
QPushButton * | select |
Select button. | |
QPushButton * | callCabo |
Call Cabo and end game. | |
QPushButton * | exitButton |
Call Cabo and end game. | |
int * | cardSelection |
Integer helps with navigation when selecting cards. | |
int * | cardSelectionAdversary |
Integer helps with navigation when selecting cards. | |
int * | firstSelection |
int * | caboCaller |
Integer helping check who called cabo. | |
int * | turnsPassed |
Check how much turns have passed. | |
bool * | firstTurn |
Check if the game just started. | |
bool * | cputurn |
Check if it is the CPU's turn. | |
bool * | caboCalled |
Check if cabo has been called. | |
bool * | lock |
Temporary lock boolean used to evaluate conditions between functions. | |
int * | finalScorePlayer |
Final score of the human player once the game ends. | |
QVector< int > * | drawPileCards |
Holds value in the draw pile. | |
QVector< int > * | discardPileCards |
Holds value in the discard pile. | |
QString * | mystr |
String to display on text. | |
|
slot |
Function called when the player calls cabo
|
slot |
game2scene::checkDrawPile_amount()
Check if the draw pile has run out
|
slot |
game2scene::checkDrawPile_amount_CPUs()
Check if the draw pile has run out without any turn delay
|
slot |
Final cabo check with scores being displayed
|
slot |
game2scene::checkOneCards_startPlayer()
Let the player check one of his cards (Phase1)
|
slot |
game2scene::checkTwoCards_startPlayer()
Let the player check two of his cards (Phase1)
|
slot |
CPU1 turn function
|
slot |
CPU2 turn function
|
slot |
Handle CPU1 and CPU2 turn
|
slot |
Function called when the player picks a card from the discard pile
|
slot |
game2scene::discardcard_action()
Function called when the player picks a card from the draw pile and discards it
|
slot |
Function called when the player picks a card from the draw pile
|
slot |
Exit state when cabo has been called
|
slot |
Exit from in-progress game and save
|
slot |
Main game loop
|
slot |
game2scene::checkOneCards_checkPhase1()
Let the player check one of his cards (Phase2)
|
slot |
game2scene::getOneCards_checkPhase2()
Let the player check one of his cards (Phase2)
|
slot |
game2scene::getTwoCards_checkPhase1()
Let the player check two of his cards (Phase2)
|
slot |
game2scene::getTwoCards_checkPhase2()
Let the player check two of his cards (Phase3)
|
slot |
game2scene::getTwoCards_checkPhase3()
Let the player check two of his cards (Phase4)
|
slot |
Move left when selecting between player cards
|
slot |
Move left when selecting between adversary cards
|
slot |
Move right when selecting between player cards
|
slot |
Move right when selecting between adversary cards
|
slot |
Initialize all cards on the game scene
|
slot |
Initialize the discard pile
|
slot |
Initialize the draw pile
|
slot |
Initialize the UI elements
|
slot |
Keep card selected from draw pile
|
slot |
game2scene::keepcard_action_phase1()
Keep card selected from draw pile
|
slot |
Load existing game
|
slot |
game2scene::selectandswap_discard()
Function called when the player picks a card from the discard pile
|
slot |
Let the user select between the discard and draw pile
|
slot |
game2scene::spyCard_withenemy_phase1()
Let the player spy on the card of an opponent (Phase1)
|
slot |
game2scene::spyCard_withenemy_phase2()
Let the player spy on the card of an opponent (Phase2)
|
slot |
game2scene::spyCard_withenemy_phase3()
Let the player spy on the card of an opponent (Phase3)
|
slot |
Start new game
|
slot |
game2scene::swapCard_withenemy_phase1()
Let the player swap one of his cards with an opponent (Phase1)
|
slot |
game2scene::swapCard_withenemy_phase2()
Let the player swap one of his cards with an opponent (Phase2)
|
slot |
game2scene::swapCard_withenemy_phase3()
Let the player swap one of his cards with an opponent (Phase3)