summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAtle Hellvik Havsø <atle@havso.net>2010-11-20 13:35:37 +0100
committerAtle Hellvik Havsø <atle@havso.net>2010-11-20 13:35:37 +0100
commit93763b9327c6b11016d1b20ea2bb7882f915e33e (patch)
tree3e49d876c095fcbfea822752b31d0545a802e4da /common
parent6caa3da6a2da23fe8cd8e8fdc8074a1022a00163 (diff)
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.
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
Diffstat (limited to 'common')
-rw-r--r--common/action.h4
1 files changed, 4 insertions, 0 deletions
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<class Archive>
void serialize(Archive & ar, const unsigned int version) {
ar & type;
ar & target;
+ ar & player;
}
};