Libsaki
Core library of Pancake Mahjong
Public Types | Public Member Functions | List of all members
saki::Form Class Reference

Public Types

enum  Type { F4, F7, F13 }
 
using Yakus = std::bitset< Yaku::NUM_YAKUS >
 

Public Member Functions

 Form (const Hand &ready, const T37 &pick, const FormCtx &ctx, const Rule &rule, const util::Stactor< T37, 5 > &drids=util::Stactor< T37, 5 >(), const util::Stactor< T37, 5 > &urids=util::Stactor< T37, 5 >())
 
 Form (const Hand &full, const FormCtx &ctx, const Rule &rule, const util::Stactor< T37, 5 > &drids=util::Stactor< T37, 5 >(), const util::Stactor< T37, 5 > &urids=util::Stactor< T37, 5 >())
 
bool isPrototypalYakuman () const
 
int fu () const
 
int han () const
 
int base () const
 
int dora () const
 
int uradora () const
 
int akadora () const
 
const Yakus & yakus () const
 
std::vector< const char * > keys () const
 
ManganType manganType () const
 
bool hasYaku () const
 
int netLoss (bool isDealer) const
 
int netGain () const
 
int loss (bool isDealer) const
 
int gain () const
 
std::string spell () const
 
std::string charge () const
 

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