|
Study Dungeon
1.0.0
A group project for COSC345
|
Class to define the playing card object. More...
#include <playing_card.h>
Public Member Functions | |
| PlayingCard () | |
| Construct a new Playing Card object. More... | |
| PlayingCard (enum Type cardType, int value) | |
| Construct a new Playing Card object. More... | |
| bool | operator== (PlayingCard &other) |
| Compares another PlayingCard object to this. More... | |
| int | getValue () |
| Returns the value of the card. More... | |
| enum Type | getType () |
| Returns the target of the card. More... | |
| std::string | toString () |
| Converts this PlayingCard object to string. More... | |
Class to define the playing card object.
| PlayingCard::PlayingCard | ( | ) |
Construct a new Playing Card object.
Default Constructor.
| PlayingCard::PlayingCard | ( | enum Type | cardType, |
| int | value | ||
| ) |
Construct a new Playing Card object.
| target | the target of the card |
| cardType | the effect of the card |
| value | the value modifier of the card |
| enum Type PlayingCard::getType | ( | ) |
Returns the target of the card.
Get the type of the card
| int PlayingCard::getValue | ( | ) |
Returns the value of the card.
| bool PlayingCard::operator== | ( | PlayingCard & | other | ) |
Compares another PlayingCard object to this.
Comparas another PlayingCard object to this. Returns true if both PlayingCard objects possess the same member values. Returns false otherwise.
| other | The card to compare this to. |
| std::string PlayingCard::toString | ( | ) |
Converts this PlayingCard object to string.