diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/action.h | 11 |
1 files changed, 5 insertions, 6 deletions
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<int> target; - - //! Player doing this action - int player; + //! Target of action (if applicable). + int target; + + //! Compare to another action. + bool operator==(Action other); template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & type; ar & target; - ar & player; } }; |