PPL Assignment
IRM2015006
geekboy.h
Go to the documentation of this file.
1 
2 #ifndef GEEKBOY_H
3 #define GEEKBOY_H
4 
5 #include "boy.h"
6 
10 class GeekBoy : public Boy {
11 private:
12  static const BoyNature nature = geek;
14 public:
15  GeekBoy(std::string name, int attr, int intel, int budget, int min_attr_req);
17  float getHappiness() override;
19  BoyNature getNature() override;
20 };
21 
22 #endif /* GEEKBOY_H */
int attr
Definition: boy.h:25
BoyNature getNature() override
Definition: geekboy.cpp:27
float getHappiness() override
Definition: geekboy.cpp:16
int min_attr_req
Definition: boy.h:28
int budget
Definition: boy.h:27
int intel
Definition: boy.h:26
static const BoyNature nature
Definition: geekboy.h:12
Definition: boy.h:20
std::string name
Definition: boy.h:24
Definition: boy_type.h:8
GeekBoy(std::string name, int attr, int intel, int budget, int min_attr_req)
Definition: geekboy.cpp:3
BoyNature
Definition: boy_type.h:5