PPL Assignment
IRM2015006
NormalGirl Class Reference

#include <normalgirl.h>

Inheritance diagram for NormalGirl:
Inheritance graph
Collaboration diagram for NormalGirl:
Collaboration graph

Public Member Functions

 NormalGirl (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 = normal
 

Additional Inherited Members

- Public Attributes inherited from Girl
bool committed
 
std::string name
 
int attr
 
int intel
 
int budget
 
float happiness
 
BoyType boy_type
 
Boyboyfriend
 
std::vector< Gift > * gifts
 

Detailed Description

Header for normalgirl class

Definition at line 10 of file normalgirl.h.

Constructor & Destructor Documentation

NormalGirl::NormalGirl ( std::string  name,
int  attr,
int  intel,
int  budget,
BoyType  boy_type 
)

Parametrized constructor

Definition at line 6 of file normalgirl.cpp.

Member Function Documentation

float NormalGirl::getHappiness ( )
overridevirtual

Override getHappiness of base class

Implements Girl.

Definition at line 19 of file normalgirl.cpp.

GirlNature NormalGirl::getNature ( )
overridevirtual

Override getNature of base class

Implements Girl.

Definition at line 34 of file normalgirl.cpp.

Member Data Documentation

const GirlNature NormalGirl::nature = normal
staticprivate

Nature of girl

Definition at line 12 of file normalgirl.h.


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