|
Libsaki
Core library of Pancake Mahjong
|


Classes | |
| struct | InitConfig |
Public Types | |
| enum | CheckResult { OK, EXPIRED, ILLEGAL } |
Public Member Functions | |
| Table (InitConfig config, std::vector< TableObserver *> obs, const TableEnv &env) | |
| Create a new table. More... | |
| Table (const Table &orig, std::vector< TableObserver *> obs) | |
| Clone a table and replace all its observers. | |
| Table (const Table ©)=delete | |
| Table & | operator= (const Table &assign)=delete |
| void | start () |
| Start the table. | |
| void | action (Who who, const Action &act, int nonce) |
| Input an action to the table. | |
| CheckResult | check (Who who, const Action &action, int nonce) const |
| Validate a user input. | |
| const Hand & | getHand (Who who) const |
| const River & | getRiver (Who who) const |
| const Girl & | getGirl (Who who) const |
| std::unique_ptr< TableView > | getView (Who who) const |
| const Furiten & | getFuriten (Who who) const |
| const std::array< int, 4 > & | getPoints () const |
| int | getRound () const |
| int | getExtraRound () const |
| TileCount | visibleRemain (Who who) const |
| int | riverRemain (T34 t) const |
| int | getRank (Who who) const |
| Get the ranking of a player. More... | |
| const TableFocus & | getFocus () const |
| const T37 & | getFocusTile () const |
| bool | genbutsu (Who whose, T34 t) const |
| bool | lastDiscardLay () const |
| bool | riichiEstablished (Who who) const |
| bool | duringKan () const |
| bool | isAllLast () const |
| bool | beforeEast1 () const |
| bool | inIppatsuCycle () const |
| bool | anyActivated () const |
| Checks if the table is waiting for any user input. More... | |
| Who | findGirl (Girl::Id id) const |
| Who | getDealer () const |
| int | getDice () const |
| Get the sum of the two dice numbers of this round. More... | |
| int | getDeposit () const |
| int | getSelfWind (Who who) const |
| int | getRoundWind () const |
| int | getNonce (Who who) const |
| const Rule & | getRule () const |
| FormCtx | getFormCtx (Who who) const |
| Get the context for counting the points of a hand. More... | |
| const Choices & | getChoices (Who who) const |
| const Mount & | getMount () const |
| const TableEnv & | getEnv () const |
| void | popUp (Who who) const |
| Pop up extra texts onto the screen. More... | |
|
explicit |
Create a new table.
| config | Initial configuration |
| obs | Observers |
| env | Environment provider |
| bool Table::anyActivated | ( | ) | const |
Checks if the table is waiting for any user input.
| bool Table::beforeEast1 | ( | ) | const |
| bool Table::duringKan | ( | ) | const |
| int Table::getDice | ( | ) | const |
Get the sum of the two dice numbers of this round.
Get the context for counting the points of a hand.
| who | The player whose hand is to be calculated |
| int Table::getRank | ( | Who | who | ) | const |
Get the ranking of a player.
| who | The player |
| bool Table::lastDiscardLay | ( | ) | const |
| void Table::popUp | ( | Who | who | ) | const |
Pop up extra texts onto the screen.
| who | Player to whom the text is visible |
1.8.13