1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#pragma once
#include <string>
class Bunny
{
public:
enum BunnyName
{
TOM,
ANTHONY,
JAMES,
LEBRON,
PIKE,
SPOKE,
MAX_NAMES,
DARK,
DARKNESS,
LORDKILLER,
OBSESSOR,
MAX_RADIOACTIVE
};
enum BunnyColor
{
BROWN,
BLACK,
GREY,
WHITE,
SPOTTED,
MAX_COLORS
};
public:
BunnyColor m_color;
protected:
BunnyName m_name;
std::string m_tester;
std::string m_sex;
int m_age;
public:
Bunny(std::string tester = "CIUVAK", BunnyName name = MAX_RADIOACTIVE, BunnyColor color = MAX_COLORS,
std::string sex = "OPA", int age = 1);
Bunny(const Bunny &bunny);
~Bunny();
friend std::ostream& operator<<(std::ostream &out, Bunny &bunnny);
Bunny& operator=(const Bunny &bunny);
std::string getName();
std::string getColor();
std::string getSex() { return m_sex; }
std::string getTester() { return m_tester; }
int getAge() const { return m_age; }
int increaseAge() { return m_age++; }
};
|