Study Dungeon  1.0.0
A group project for COSC345
playing_card.h
Go to the documentation of this file.
1 
11 #pragma once
12 #ifndef PLAYING_CARD_H
13 #define PLAYING_CARD_H
14 
15 #include "card_types.h"
16 #include "util.h"
17 #include <string>
18 
24 {
25 private:
29  int value;
30 
34  enum Type cardType;
35 
36 public:
43  PlayingCard();
44 
52  PlayingCard(/*bool target,*/ enum Type cardType, int value);
53 
65  bool operator==(PlayingCard &other);
66 
72  int getValue();
73 
80  // bool getTarget();
81 
87  enum Type getType();
88 
94  std::string toString();
95 };
96 #endif
Defines the cards types for the card duel.
Type
All possible effects that a playing card could have.
Definition: card_types.h:22
Class to define the playing card object.
Definition: playing_card.h:24
int getValue()
Returns the value of the card.
Definition: playing_card.cpp:34
enum Type getType()
Returns the target of the card.
Definition: playing_card.cpp:39
bool operator==(PlayingCard &other)
Compares another PlayingCard object to this.
Definition: playing_card.cpp:25
std::string toString()
Converts this PlayingCard object to string.
Definition: playing_card.cpp:44
PlayingCard()
Construct a new Playing Card object.
Definition: playing_card.cpp:19
Contains useful helper functions.