PPL Assignment
IRM2015006
Main Page
Classes
Files
File List
File Members
miserboy.h
Go to the documentation of this file.
1
2
#ifndef MISERBOY_H
3
#define MISERBOY_H
4
5
#include "
boy.h
"
6
10
class
MiserBoy
:
public
Boy
{
11
private
:
12
static
const
BoyNature
nature
=
miser
;
13
public
:
15
MiserBoy
(std::string
name
,
int
attr
,
int
intel
,
int
budget
,
int
min_attr_req
);
17
float
getHappiness
()
override
;
19
BoyNature
getNature
()
override
;
20
};
21
22
#endif
/* MISERBOY_H */
Boy::attr
int attr
Definition:
boy.h:25
miser
Definition:
boy_type.h:6
MiserBoy::MiserBoy
MiserBoy(std::string name, int attr, int intel, int budget, int min_attr_req)
Definition:
miserboy.cpp:3
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
MiserBoy::getHappiness
float getHappiness() override
Definition:
miserboy.cpp:16
Boy
Definition:
boy.h:20
Boy::name
std::string name
Definition:
boy.h:24
MiserBoy
Definition:
miserboy.h:10
MiserBoy::getNature
BoyNature getNature() override
Definition:
miserboy.cpp:30
MiserBoy::nature
static const BoyNature nature
Definition:
miserboy.h:12
BoyNature
BoyNature
Definition:
boy_type.h:5
boys
miserboy.h
Generated by
1.8.11