PPL Assignment
IRM2015006
GeekBoy Class Reference

#include <geekboy.h>

Inheritance diagram for GeekBoy:
Inheritance graph
Collaboration diagram for GeekBoy:
Collaboration graph

Public Member Functions

 GeekBoy (std::string name, int attr, int intel, int budget, int min_attr_req)
 
float getHappiness () override
 
BoyNature getNature () override
 
- Public Member Functions inherited from Boy
void makeCouple (Girl *girl)
 
void setGiftBasket (std::vector< Gift > *gifts)
 
bool isCompatible (Girl *girl)
 

Static Private Attributes

static const BoyNature nature = geek
 

Additional Inherited Members

- Public Attributes inherited from Boy
std::string name
 
int attr
 
int intel
 
int budget
 
int min_attr_req
 
float happiness
 
Girlgirlfriend
 
bool committed
 
std::vector< Gift > * gifts
 

Detailed Description

Header file for GeekBoy GeekBoy class Ineherits Boy publicly

Definition at line 10 of file geekboy.h.

Constructor & Destructor Documentation

GeekBoy::GeekBoy ( std::string  name,
int  attr,
int  intel,
int  budget,
int  min_attr_req 
)

Definition at line 3 of file geekboy.cpp.

Member Function Documentation

float GeekBoy::getHappiness ( )
overridevirtual

overriding getHappiness of base class

Implements Boy.

Definition at line 16 of file geekboy.cpp.

BoyNature GeekBoy::getNature ( )
overridevirtual

overriding getNature of base class

Implements Boy.

Definition at line 27 of file geekboy.cpp.

Member Data Documentation

const BoyNature GeekBoy::nature = geek
staticprivate

Nature of boy

Definition at line 12 of file geekboy.h.


The documentation for this class was generated from the following files: