Libsaki
Core library of Pancake Mahjong
Public Member Functions | Static Public Member Functions | List of all members
saki::T37 Class Reference
Inheritance diagram for saki::T37:
Inheritance graph
[legend]
Collaboration diagram for saki::T37:
Collaboration graph
[legend]

Public Member Functions

 T37 ()
 Garbage value.
 
 T37 (const T37 &copy)=default
 
 T37 (int id34)
 
 T37 (Suit suit, int val)
 
constexpr T37 (int val, Suit suit)
 
 T37 (const char *str)
 
const char * str37 () const
 String representation of the tile. More...
 
bool isAka5 () const
 
bool looksSame (const T37 &rhs) const
 
T37 toAka5 () const
 
T37 toInverse5 () const
 
- Public Member Functions inherited from saki::T34
 assume_opt_out (0<=id34 &&id34< 34)
 
 T34 (Suit suit, int val)
 
constexpr T34 (int val, Suit suit)
 
 T34 (const char *str)
 
 T34 (const T34 &copy)=default
 
T34operator= (const T34 &assign)=default
 
int id34 () const
 
unsigned uId34 () const
 
Suit suit () const
 
int val () const
 
const char * str34 () const
 
bool isZ () const
 
bool isNum () const
 
bool isNum19 () const
 
bool isNum1928 () const
 
bool isYao () const
 
bool isYakuhai (int selfWind, int roundWind) const
 
bool operator== (T34 rhs) const
 
bool operator!= (T34 rhs) const
 
bool operator< (T34 rhs) const
 
bool operator| (T34 up) const
 
bool operator|| (T34 up) const
 
bool operator^ (T34 up) const
 
bool operator% (T34 dora) const
 
T34 prev () const
 
T34 pprev () const
 
T34 next () const
 
T34 nnext () const
 
T34 dora () const
 
T34 indicator () const
 
int period () const
 
Wait waitAsSequence (T34 pick) const
 

Static Public Member Functions

static bool isValidStr (const char *str)
 
- Static Public Member Functions inherited from saki::T34
static char charOf (Suit s)
 
static Suit suitOf (char c)
 
static bool isValidSuit (char c)
 

Additional Inherited Members

- Public Attributes inherited from saki::T34
 __pad0__: mInitialized(false) { } explicit T34(int id34) : mId34(id34) { assert(0 <= id34 && id34 < 34)
 Garbage value.
 

Member Function Documentation

◆ str37()

const char* saki::T37::str37 ( ) const
inline

String representation of the tile.

Returns
"0m", "0p", "0s" when the tile is an aka5, T34::str34() otherwise.

The documentation for this class was generated from the following file: