1 #ifndef SAKI_TABLE_OBSERVER_H 2 #define SAKI_TABLE_OBSERVER_H 4 #include "table_event.h" 17 using River = util::Stactor<T37, 24>;
30 (void) table; (void) event;
36 #define BLANK_DEF { (void) t; (void) e; } 45 void onTableEvent(
const Table &table,
const TE &event)
final 48 switch (event.type()) {
49 case T::TABLE_STARTED:
52 case T::FIRST_DEALER_CHOSEN:
55 case T::ROUND_STARTED:
62 onTableEvent(table, event.as<
TE::Diced>());
65 onTableEvent(table, event.as<
TE::Dealt>());
71 onTableEvent(table, event.as<
TE::Drawn>());
76 case T::RIICHI_CALLED:
79 case T::RIICHI_ESTABLISHED:
88 case T::POINTS_CHANGED:
104 virtual void onTableEvent(
const Table &t,
const TE::Diced &e) BLANK_DEF
105 virtual void onTableEvent(
const Table &t,
const TE::Dealt &e) BLANK_DEF
107 virtual void onTableEvent(
const Table &t,
const TE::Drawn &e) BLANK_DEF
111 virtual void onTableEvent(
const Table &t,
const TE::Barked &e) BLANK_DEF
124 #endif // SAKI_TABLE_OBSERVER_H Definition: lobject.h:497
Definition: table_event.h:60
Definition: table_event.h:23
Definition: table_event.h:82
Definition: table_observer.h:38
Definition: table_event.h:77
Definition: table_event.h:131
Definition: table_event.h:140
Definition: table_event.h:94
Definition: table_event.h:145
Definition: table_observer.h:23
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
Definition: table_event.h:117
Definition: table_event.h:152
Definition: table_event.h:54
Definition: table_event.h:111