blob: 188535e8a027b125e8ac479c08a502f06f3f5480 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "action.h"
#include <algorithm>
bool Action::operator==(const Action& other) {
return type == other.type && target == other.target;
}
bool Actions::contains(Action action) {
return std::find(begin(), end(), action) != end();
}
|