PPL Assignment
IRM2015006
Main Page
Classes
Files
File List
File Members
generousboy.h
Go to the documentation of this file.
1
2
#ifndef GENEROUSBOY_H
3
#define GENEROUSBOY_H
4
5
#include "
boy.h
"
6
10
class
GenerousBoy
:
public
Boy
{
11
private
:
12
static
const
BoyNature
nature
=
generous
;
14
public
:
16
GenerousBoy
(std::string
name
,
int
attr
,
int
intel
,
int
budget
,
int
min_attr_req
);
18
float
getHappiness
()
override
;
20
BoyNature
getNature
()
override
;
21
};
22
23
#endif
/* GENEROUSBOY_H */
Boy::attr
int attr
Definition:
boy.h:25
generous
Definition:
boy_type.h:7
GenerousBoy
Definition:
generousboy.h:10
GenerousBoy::getNature
BoyNature getNature() override
Definition:
generousboy.cpp:26
Boy::min_attr_req
int min_attr_req
Definition:
boy.h:28
boy.h
Boy::budget
int budget
Definition:
boy.h:27
Boy::intel
int intel
Definition:
boy.h:26
Boy
Definition:
boy.h:20
Boy::name
std::string name
Definition:
boy.h:24
GenerousBoy::getHappiness
float getHappiness() override
Definition:
generousboy.cpp:15
GenerousBoy::nature
static const BoyNature nature
Definition:
generousboy.h:12
BoyNature
BoyNature
Definition:
boy_type.h:5
GenerousBoy::GenerousBoy
GenerousBoy(std::string name, int attr, int intel, int budget, int min_attr_req)
Definition:
generousboy.cpp:3
boys
generousboy.h
Generated by
1.8.11