-
Notifications
You must be signed in to change notification settings - Fork 31
/
containers_fwd.h
49 lines (40 loc) · 1.18 KB
/
containers_fwd.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
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) 2021-2024, Edoardo Lolletti (edo9300) <[email protected]>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#ifndef CONTAINERS_FWD_H
#define CONTAINERS_FWD_H
#include <cstdint>
#include <list>
#include <map>
#include <unordered_map>
#include <vector>
#include <set>
class group;
class card;
using card_vector = std::vector<card*>;
struct card_sort {
bool operator()(const card* c1, const card* c2) const;
};
using card_set = std::set<card*, card_sort>;
class effect;
using effect_vector = std::vector<effect*>;
using effect_container = std::multimap<uint32_t, effect*>;
using effect_indexer = std::unordered_map<effect*, effect_container::iterator>;
using effect_set = std::vector<effect*>;
using effect_set_v = effect_set;
bool effect_sort_id(const effect* e1, const effect* e2);
struct effect_sort_by_id {
bool operator()(effect* e1, effect* e2) const;
};
struct effect_sort_by_initial_id {
bool operator()(effect* e1, effect* e2) const;
};
struct chain;
using chain_array = std::vector<chain>;
using chain_list = std::list<chain>;
using instant_f_list = std::map<effect*, chain>;
struct tevent;
using event_list = std::list<tevent>;
#endif /* CONTAINERS_FWD_H */