aboutsummaryrefslogtreecommitdiff
path: root/oop2eindopdr/PokemonCard.h
diff options
context:
space:
mode:
Diffstat (limited to 'oop2eindopdr/PokemonCard.h')
-rw-r--r--oop2eindopdr/PokemonCard.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/oop2eindopdr/PokemonCard.h b/oop2eindopdr/PokemonCard.h
new file mode 100644
index 0000000..1037ffd
--- /dev/null
+++ b/oop2eindopdr/PokemonCard.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+class PokemonCard {
+public:
+ PokemonCard();
+ virtual ~PokemonCard();
+
+ /** @brief string stream output (for printing card) */
+ friend std::ostream& operator << (std::ostream& output, const PokemonCard& card);
+
+ std::string id; /** @brief pokemon id (with set prefix) */
+ std::string name; /** @brief pokemon name */
+ unsigned hp; /** @brief pokemon max health points */
+ double value; /** @brief pokemon card current market value */
+ std::vector<std::string> attacks; /** @brief list of possible attacks */
+
+ /** @brief use API to fetch `this->hp` */
+ virtual void fetch_market_value();
+};
+