Libsaki
Core library of Pancake Mahjong
girl
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
:
16
using
GirlCrtp<Hatsumi>::GirlCrtp
;
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
saki::HrhBargainer
Interface for working with the 'bargain' stage.
Definition:
princess.h:38
saki::Hatsumi
Definition:
eisui_hatsumi.h:13
saki::HrhBargainer::Claim
Claim
Definition:
princess.h:47
saki::Mount
Definition:
mount.h:54
saki::Hatsumi::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:
eisui_hatsumi.cpp:29
saki::Table
Definition:
table.h:87
saki::T34
Definition:
tile.h:25
saki
Definition:
ai.cpp:18
saki::Hand
Definition:
hand.h:17
saki::GirlCrtp
Definition:
girl.h:212
saki::Who
Definition:
who.h:14
Generated by
1.8.13