forked from brikikeks/tyrant_optimize
-
Notifications
You must be signed in to change notification settings - Fork 7
/
cards.h
37 lines (30 loc) · 921 Bytes
/
cards.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef CARDS_H_INCLUDED
#define CARDS_H_INCLUDED
#include <map>
#include <string>
#include <unordered_set>
#include <vector>
class Card;
class Cards
{
public:
~Cards();
std::vector<Card*> all_cards;
std::map<unsigned, Card*> cards_by_id;
std::unordered_set<Card*> player_cards;
std::map<std::string, Card*> cards_by_name;
std::vector<Card*> player_commanders;
std::vector<Card*> player_assaults;
std::vector<Card*> player_structures;
std::map<std::string, std::string> player_cards_abbr;
std::unordered_set<unsigned> visible_cardset;
std::unordered_set<std::string> ambiguous_names;
const Card* by_id(unsigned id) const;
void clear();
void organize();
void fix_dominion_recipes();
void add_card(Card* card, const std::string & name);
void erase_fusion_recipe(unsigned card_id);
};
std::string simplify_name(const std::string& card_name);
#endif