From 93763b9327c6b11016d1b20ea2bb7882f915e33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=C3=B8?= Date: Sat, 20 Nov 2010 13:35:37 +0100 Subject: Made the Player class have a ID (That gets set during a game) which they add to the Action-message. So we can keep track of which player did what action. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Atle Hellvik Havsø --- common/action.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/action.h b/common/action.h index 21fc7d0..1c07086 100644 --- a/common/action.h +++ b/common/action.h @@ -24,10 +24,14 @@ class Action { //! Target of action (if applicable). int target; + //! Player doing this action + int player; + template void serialize(Archive & ar, const unsigned int version) { ar & type; ar & target; + ar & player; } }; -- cgit v1.2.3