#ifndef SPINNER_T #define SPINNER_T #include enum ActionT {ONE_CHERRY, TWO_CHERRIES, THREE_CHERRIES, FOUR_CHERRIES, BIRD, DOG, SPILL, UNKNOWN}; const int SPINNER_SIDES = UNKNOWN - ONE_CHERRY; std::string ActionToString(ActionT spin); ActionT IntToActionT(int n); ActionT Next(ActionT a); class SpinnerT { public: SpinnerT(); void Spin(); ActionT GetResult(); std::string GetResultString(); private: ActionT value; }; #endif