PPL Assignment
IRM2015006
|
#include <choosygirl.h>
Public Member Functions | |
ChoosyGirl (std::string name, int attr, int intel, int budget, BoyType boy_type) | |
float | getHappiness () override |
GirlNature | getNature () override |
Public Member Functions inherited from Girl | |
void | makeCouple (Boy *boy) |
void | setGiftBasket (std::vector< Gift > *gifts) |
bool | isCompatible (Boy *boy) |
Static Private Attributes | |
static const GirlNature | nature = choosy |
Additional Inherited Members | |
Public Attributes inherited from Girl | |
bool | committed |
std::string | name |
int | attr |
int | intel |
int | budget |
float | happiness |
BoyType | boy_type |
Boy * | boyfriend |
std::vector< Gift > * | gifts |
Header file for ChoosyGirl ChoosyGirl class Inherits Girl publicly
Definition at line 10 of file choosygirl.h.
ChoosyGirl::ChoosyGirl | ( | std::string | name, |
int | attr, | ||
int | intel, | ||
int | budget, | ||
BoyType | boy_type | ||
) |
Parametrized constructor
Definition at line 5 of file choosygirl.cpp.
|
overridevirtual |
Override getHappiness of base class
Implements Girl.
Definition at line 18 of file choosygirl.cpp.
|
overridevirtual |
Override getNature of base class
Implements Girl.
Definition at line 36 of file choosygirl.cpp.
|
staticprivate |
Nature of girl
Definition at line 12 of file choosygirl.h.