#include #include "AttributeT.h" using namespace std; AttributeT NextAttribute(AttributeT a) { if (a != AttributeT::NONE) { a = static_cast(static_cast(a) + 1); } return a; } string AttributeName(AttributeT a){ switch (a) { case AttributeT::HEALTH: return "health"; case AttributeT::ATTACK: return "attack"; case AttributeT::DEFEND: return "defend"; default: return "none"; } } ostream & operator << (ostream & s, AttributeT a){ s << AttributeName(a); return s; }