Defines the cards types for the card duel.
Represents a Game.
Definition: gameloop.h:30
Player p1
Definition: gameloop.h:39
bool isGameOver()
Checks if the game is over.
Definition: gameloop.cpp:87
Player p2
Definition: gameloop.h:43
void swapHandEffect()
Swap the hands between the players.
Definition: gameloop.cpp:112
void switchTurn()
Switches the turn to the next player.
Definition: gameloop.cpp:71
void playEffect(PlayingCard &card)
Plays the effect of the given playing card.
Definition: gameloop.cpp:37
void healEffect(PlayingCard &card)
Apply the heal effect to the player whose turn it is.
Definition: gameloop.cpp:119
void damageEffect(PlayingCard &card)
Apply the damage effect to the player whose turn it is.
Definition: gameloop.cpp:131
short turn
Definition: gameloop.h:35
Game()
Construct a new Game object.
Definition: gameloop.cpp:17
short getWinner()
Which player was the winner.
Definition: gameloop.cpp:100
void nextTurn(PlayingCard &nextCard)
Plays the next turn of the game.
Definition: gameloop.cpp:24
void drawCard()
Draws a card for the player whose turn it is.
Definition: gameloop.cpp:55
Class that represents a Player.
Definition: player.h:28
Class to define the playing card object.
Definition: playing_card.h:24
std::vector< PlayingCard > generateDeck(int numCards)
Generates a hand.
Definition: gameloop.cpp:144
This file defines the classes and methods for a Player.
This file defines the classes and methods used for a Playing Card.
Contains useful helper functions.