From bdf3e3b9c91dc1531a44b1cabaaf598f16d377e8 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 25 Nov 2010 01:35:20 +0100 Subject: Remove Action::player and turn Action::target into an int. --- common/action.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/action.h b/common/action.h index bae22cf..7ad84ee 100644 --- a/common/action.h +++ b/common/action.h @@ -22,17 +22,16 @@ class Action { //! Type of action. Type type; - //! Targets of action (if applicable). - std::vector target; - - //! Player doing this action - int player; + //! Target of action (if applicable). + int target; + + //! Compare to another action. + bool operator==(Action other); template void serialize(Archive & ar, const unsigned int version) { ar & type; ar & target; - ar & player; } }; -- cgit v1.2.3