4 #include "../table/table_observer.h" 5 #include "../table/girl.h" 18 std::vector<T37> river;
20 bool riichiBar =
false;
25 std::array<PlayerSnap, 4> players;
28 std::array<int, 4> points;
43 bool endOfRound =
false;
46 std::vector<Who> openers;
47 std::vector<std::string> spells;
48 std::vector<std::string> charges;
50 PlayerSnap &operator[](
size_t w) {
return players[w]; }
51 const PlayerSnap &operator[](
size_t w)
const {
return players[w]; }
59 DRAW, CHII_AS_LEFT, CHII_AS_MIDDLE, CHII_AS_RIGHT,
60 PON, DAIMINKAN, RON, SKIP_IN
65 ADVANCE, SPIN, RIICHI_ADVANCE, RIICHI_SPIN, ANKAN, KAKAN,
66 RYUUKYOKU, TSUMO, SKIP_OUT
71 explicit InAct(In act) : act(act) {}
72 explicit InAct(In act,
const T37 &t) : act(act), t37(t) {}
73 explicit InAct(In act,
int showAka5) : act(act), showAka5(showAka5) {}
85 explicit OutAct(Out act) : act(act) {}
86 explicit OutAct(Out act,
const T37 &t) : act(act), t37(t) {}
93 std::array<T37, 13> init;
94 std::vector<InAct> in;
95 std::vector<OutAct> out;
108 RoundResult result = RoundResult::ABORT;
109 std::array<int, 4> resultPoints;
110 std::vector<std::string> spells;
111 std::vector<std::string> charges;
112 std::vector<T37> drids;
113 std::vector<T37> urids;
114 std::array<Track, 4> tracks;
119 ~
Replay()
override =
default;
124 void onTableEvent(
const Table &table,
const TE::Diced &event)
override;
125 void onTableEvent(
const Table &table,
const TE::Dealt &event)
override;
127 void onTableEvent(
const Table &table,
const TE::Drawn &event)
override;
130 void onTableEvent(
const Table &table,
const TE::Barked &event)
override;
137 void addSkip(
Who who,
Who fromWhom);
146 std::array<Girl::Id, 4> girls;
147 std::array<int, 4> initPoints;
150 std::vector<Round> rounds;
153 bool mToEstablishRiichi =
false;
162 #endif // SAKI_REPLAY_H
Definition: table_event.h:82
Definition: table_observer.h:38
Definition: table_event.h:131
Definition: tile_count.h:17
Definition: table_event.h:140
Definition: table_event.h:94
Definition: table_event.h:66
Definition: table_event.h:105
Definition: table_event.h:99
Definition: table_event.h:89
Definition: table_event.h:123
Stactor = statically allocated vector.
Definition: stactor.h:247
Definition: table_event.h:54
Definition: table_event.h:111