aboutsummaryrefslogtreecommitdiff
path: root/oop2eindopdr/Pokedex.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-24 11:25:22 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-24 11:25:22 +0100
commit23d23792e5acb06153f3478958c9070778de8edd (patch)
tree22ef7855d011ff7c3a02155e851ebf2fcce763f1 /oop2eindopdr/Pokedex.h
parentc98f9337940128178401bb6b2d242ce577080ca4 (diff)
Pokedex shim + user input handling in main.cpp
Diffstat (limited to 'oop2eindopdr/Pokedex.h')
-rw-r--r--oop2eindopdr/Pokedex.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/oop2eindopdr/Pokedex.h b/oop2eindopdr/Pokedex.h
index a91b560..91a0315 100644
--- a/oop2eindopdr/Pokedex.h
+++ b/oop2eindopdr/Pokedex.h
@@ -9,16 +9,19 @@
class Pokedex {
private:
std::vector<PokemonCard*> cards;
- virtual void add_cards();
+
+ /** @brief download card collection using API client */
+ virtual void load_collection_remote();
+ /** @brief load cards from cache */
+ virtual void load_collection_local();
+
+ /** @brief verify all cards in collection */
+ virtual void verify_collection();
public:
Pokedex();
virtual ~Pokedex();
- virtual void download_collection();
- virtual void load_collection();
- virtual void verify_collection();
-
/** @brief search cards that contain `query` in id field */
- virtual PokemonCard* search_card_by_id(std::string query);
+ virtual std::vector<PokemonCard*> search_cards_by_id(std::string query);
};