Libsaki
Core library of Pancake Mahjong
shiraitodai_teru.h
1 #ifndef SAKI_GIRL_SHIRAITODAI_TERU_H
2 #define SAKI_GIRL_SHIRAITODAI_TERU_H
3 
4 #include "../table/girl.h"
5 
6 
7 
8 namespace saki
9 {
10 
11 
12 
13 class Teru : public GirlCrtp<Teru>
14 {
15 public:
17 
18  void onMonkey(std::array<Exist, 4> &exists, const Table &table) 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 private:
24  TileCount mPlan;
25  int mPrevGain = 0;
26 };
27 
28 
29 
30 } // namespace saki
31 
32 
33 
34 #endif // SAKI_GIRL_SHIRAITODAI_TERU_H
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: shiraitodai_teru.cpp:24
Definition: table_event.h:23
Definition: shiraitodai_teru.h:13
Definition: mount.h:54
Definition: table.h:87
Definition: tile_count.h:17
Definition: ai.cpp:18
Definition: girl.h:212
Definition: who.h:14