Line | Count | Source |
1 | #include "scoring/yakus.h" | |
2 | ||
3 | #include <vector> | |
4 | ||
5 | #include "types/yaku.h" | |
6 | ||
7 | namespace mahjong { | |
8 | 1 | const std::vector<Yaku>& Yakus::GetYakus() { |
9 | 1 | return yakus_; |
10 | 1 | } |
11 | 5.47k | bool Yakus::RegisterYaku(const Yaku& yaku) { |
12 | 5.47k | yakus_.push_back(yaku); |
13 | 5.47k | return true; |
14 | 5.47k | } |
15 | 148 | bool Yakus::RegisterYakus(const std::vector<Yaku>& yakus) { |
16 | 740 | for (const auto& yaku : yakus) { |
17 | 740 | yakus_.push_back(yaku); |
18 | 740 | } |
19 | 148 | return true; |
20 | 148 | } |
21 | } // namespace mahjong |