nuclear@1: #ifndef ROLL_H_ nuclear@1: #define ROLL_H_ nuclear@1: nuclear@1: #include nuclear@1: nuclear@1: class Roll { nuclear@1: private: nuclear@1: int sides; nuclear@1: int value; nuclear@1: std::string name; nuclear@1: nuclear@1: public: nuclear@1: explicit Roll(int sides = 20); nuclear@1: nuclear@1: void set_name(const char *name); nuclear@1: void set_sides(int sides); nuclear@1: void set_value(int value); nuclear@1: nuclear@1: const char *get_name() const; nuclear@1: int get_sides() const; nuclear@1: int get_value() const; nuclear@1: nuclear@1: int roll(); nuclear@1: }; nuclear@1: nuclear@1: #endif // ROLL_H_