Libsaki
Core library of Pancake Mahjong
eisui_hatsumi.h
1 #ifndef SAKI_GIRL_EISUI_HATSUMI_H
2 #define SAKI_GIRL_EISUI_HATSUMI_H
3 
4 #include "../table/princess.h"
5 
6 
7 
8 namespace saki
9 {
10 
11 
12 
13 class Hatsumi : public GirlCrtp<Hatsumi>, public HrhBargainer
14 {
15 public:
17 
18  bool checkInit(Who who, const Hand &init, const Table &table, int iter) override;
19  void onDraw(const Table &table, Mount &mount, Who who, bool rinshan) override;
20  std::optional<HrhInitFix> onHrhRaid(const Table &table) override;
21 
22  HrhBargainer *onHrhBargain(const Table &table) override;
23  Claim hrhBargainClaim(int plan, T34 t) override;
24  int hrhBargainPlanCt() override;
25  void onHrhBargained(int plan, Mount &mount) override;
26 };
27 
28 
29 
30 } // namespace saki
31 
32 
33 
34 #endif // SAKI_GIRL_EISUI_HATSUMI_H
Interface for working with the &#39;bargain&#39; stage.
Definition: princess.h:38
Definition: eisui_hatsumi.h:13
Claim
Definition: princess.h:47
Definition: mount.h:54
void onDraw(const Table &table, Mount &mount, Who who, bool rinshan) override
Called when someone is about to draw a tile from the mountain.
Definition: eisui_hatsumi.cpp:29
Definition: table.h:87
Definition: tile.h:25
Definition: ai.cpp:18
Definition: hand.h:17
Definition: girl.h:212
Definition: who.h:14