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