diff options
Diffstat (limited to 'server/score.h')
-rw-r--r-- | server/score.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/score.h b/server/score.h index 7c5ca17..677fde8 100644 --- a/server/score.h +++ b/server/score.h @@ -3,11 +3,20 @@ class Score { public: - int han; + //! Points (doubles). + int yaku; + + //! Minipoints. int fu; + //! Bonus points. + int dora; + //! Constructor. - Score(int han_ = 0, int fu_ = 0); + Score(int yaku_ = 0, int fu_ = 0, int dora_ = 0); + + //! Calculate han. (yaku + dora) + int han(); //! Calculate base points. int base_points(); |