Libsaki
Core library of Pancake Mahjong
girl
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
:
16
using
GirlCrtp<Teru>::GirlCrtp
;
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
saki::Teru::onDraw
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
saki::TableEvent
Definition:
table_event.h:23
saki::Teru
Definition:
shiraitodai_teru.h:13
saki::Mount
Definition:
mount.h:54
saki::Table
Definition:
table.h:87
saki::TileCount
Definition:
tile_count.h:17
saki
Definition:
ai.cpp:18
saki::GirlCrtp
Definition:
girl.h:212
saki::Who
Definition:
who.h:14
Generated by
1.8.13