PPL Assignment
IRM2015006
|
#include <boy.h>
Public Member Functions | |
void | makeCouple (Girl *girl) |
void | setGiftBasket (std::vector< Gift > *gifts) |
bool | isCompatible (Girl *girl) |
virtual float | getHappiness ()=0 |
virtual BoyNature | getNature ()=0 |
Public Attributes | |
std::string | name |
int | attr |
int | intel |
int | budget |
int | min_attr_req |
float | happiness |
Girl * | girlfriend |
bool | committed |
std::vector< Gift > * | gifts |
|
pure virtual |
Calculate happiness of the boy. Abstract method
Implemented in GenerousBoy, GeekBoy, and MiserBoy.
|
pure virtual |
Get nature of boy Abstract method
Implemented in GenerousBoy, GeekBoy, and MiserBoy.
bool Boy::isCompatible | ( | Girl * | girl | ) |
void Boy::makeCouple | ( | Girl * | girl | ) |
void Boy::setGiftBasket | ( | std::vector< Gift > * | gifts | ) |
std::vector<Gift>* Boy::gifts |