Libsaki
Core library of Pancake Mahjong
achiga_kuro.h
1 #ifndef SAKI_GIRL_ACHIGA_KURO_H
2 #define SAKI_GIRL_ACHIGA_KURO_H
3 
4 #include "../table/princess.h"
5 
6 
7 
8 namespace saki
9 {
10 
11 
12 
13 class Kuro : public GirlCrtp<Kuro>, public HrhBargainer
14 {
15 public:
17  void onMonkey(std::array<Exist, 4> &exists, const Table &table) override;
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 
21  void onTableEvent(const Table &table, const TableEvent &event) override;
22 
23  HrhBargainer *onHrhBargain(const Table &table) override;
24  Claim hrhBargainClaim(int plan, T34 t) override;
25  int hrhBargainPlanCt() override;
26  void onHrhBargained(int plan, Mount &mount) override;
27 
28 private:
29  static const int EJECT_MK = 5000;
30  bool mCd = false;
31 };
32 
33 
34 
35 } // namespace saki
36 
37 
38 
39 #endif // SAKI_GIRL_ACHIGA_KURO_H
Interface for working with the &#39;bargain&#39; stage.
Definition: princess.h:38
Definition: table_event.h:23
Claim
Definition: princess.h:47
Definition: mount.h:54
Definition: achiga_kuro.h:13
Definition: table.h:87
Definition: tile.h:25
Definition: ai.cpp:18
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: achiga_kuro.cpp:51
Definition: hand.h:17
Definition: girl.h:212
Definition: who.h:14