From 0736e72be71331b843e2f49c3af0cb9071ee93ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=C3=B8?= Date: Tue, 23 Nov 2010 15:08:48 +0100 Subject: Changed the target in action from 2 ints into a vector. Making it easier to scale when we start with kan and riichi. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Atle Hellvik Havsø --- common/action.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/action.h b/common/action.h index c4237e6..5099e03 100644 --- a/common/action.h +++ b/common/action.h @@ -21,11 +21,9 @@ class Action { //! Type of action. Type type; - //! Target of action (if applicable). - int target; - //! Second target of action (if applicable) - int target2; - + //! Targets of action (if applicable). + std::vector target; + //! Player doing this action int player; @@ -33,7 +31,6 @@ class Action { void serialize(Archive & ar, const unsigned int version) { ar & type; ar & target; - ar & target2; ar & player; } }; -- cgit v1.2.3