summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-02 02:13:49 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-02 02:13:49 +0100
commitfdd3d58c92fc924c31c3acad69dcb3d0dac06ac0 (patch)
treefedc2b0ca0f46ab0df97c3b42a11189396ac3b21 /common
parent088b544805f90515d626b1e140060f7666c94910 (diff)
Send current_player with RoundState.
Diffstat (limited to 'common')
-rw-r--r--common/message.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/message.h b/common/message.h
index 1d78889..0051e03 100644
--- a/common/message.h
+++ b/common/message.h
@@ -175,8 +175,8 @@ namespace Message {
};
RoundState() : Base(Types::RoundState) {}
- RoundState(const Player& pl_d, const Player& pl_r, const Player& pl_u, const Player& pl_l, const Tiles& d, const Actions& a)
- : Base(Types::RoundState), dora(d), possible_actions(a) {
+ RoundState(const Player& pl_d, const Player& pl_r, const Player& pl_u, const Player& pl_l, const Tiles& d, const Actions& a, int p)
+ : Base(Types::RoundState), dora(d), possible_actions(a), current_player(p) {
players[0] = pl_d;
players[1] = pl_r;
players[2] = pl_u;
@@ -200,6 +200,7 @@ namespace Message {
ar & players;
ar & dora;
ar & possible_actions;
+ ar & current_player;
}
};