diff options
author | Atle Hellvik Havsø <atle@havso.net> | 2010-11-23 15:08:48 +0100 |
---|---|---|
committer | Atle Hellvik Havsø <atle@havso.net> | 2010-11-23 15:08:48 +0100 |
commit | 0736e72be71331b843e2f49c3af0cb9071ee93ca (patch) | |
tree | 46102b3e2fcd6f54709de63ca5b5c562ccbc7a71 /common | |
parent | 0ef516444415729861681b91531322e4eb66dc78 (diff) |
Changed the target in action from 2 ints into a vector<int>. Making it easier to scale when we start with kan and riichi.
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
Diffstat (limited to 'common')
-rw-r--r-- | common/action.h | 9 |
1 files changed, 3 insertions, 6 deletions
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<int> 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; } }; |