#include "action.h" #include Action::Action() { } Action::Action(Type ty, int ta) : type(ty), target(ta) { } bool Action::operator==(const Action& other) { return type == other.type && target == other.target; } Actions::operator bool() { return !empty(); } bool Actions::contains(Action action) { return std::find(begin(), end(), action) != end(); }