summaryrefslogtreecommitdiff
path: root/server/player.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-13 07:35:44 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-13 07:35:44 +0100
commitb738bb935955ddc66b04cd5fc50dd8ed8ab75765 (patch)
tree18915b142a1ae5dec55f9e03b0262982c8476f69 /server/player.h
parent392335ddba90464ffeebe1a59114858b350a2ea9 (diff)
Save list of han in winning hand.
Diffstat (limited to 'server/player.h')
-rw-r--r--server/player.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/player.h b/server/player.h
index d5ca4e6..a4b3416 100644
--- a/server/player.h
+++ b/server/player.h
@@ -28,6 +28,9 @@ class Player {
//! Player has won.
bool won;
+ //! List of han in winning hand.
+ List<std::pair<std::string, int> > won_han;
+
//! Value of winning hand.
Score won_value;
@@ -109,7 +112,7 @@ class Player {
void declare_tsumo();
//! Calculate score for winning hand combination.
- Score calculate_score(const Sets& hand, bool tsumo);
+ Score calculate_score(const Sets& hand, List<std::pair<std::string, int> >& han, bool tsumo);
};
#endif