Study Dungeon  1.0.0
A group project for COSC345
Data Structures | Macros | Functions
gameloop.h File Reference

Controls the game play and game loop of the card duel game. More...

#include "card_types.h"
#include "player.h"
#include "playing_card.h"
#include "util.h"
#include <ctime>
#include <iostream>
#include <string>

Go to the source code of this file.

Data Structures

class  Game
 Represents a Game. More...
 

Functions

std::vector< PlayingCardgenerateDeck (int numCards)
 Generates a hand. More...
 

Detailed Description

Controls the game play and game loop of the card duel game.

Author
Green Alligators
Version
1.0.0
Date
2024-08-27

Function Documentation

◆ generateDeck()

std::vector<PlayingCard> generateDeck ( int  numCards)

Generates a hand.

Parameters
numCardsthe number of cards to add to the hand.
Returns
std::vector<PlayingCard> the generated hand.