PPL Assignment
IRM2015006
Main Page
Classes
Files
File List
File Members
normalgirl.h
Go to the documentation of this file.
1
2
#ifndef NORMALGIRL_H
3
#define NORMALGIRL_H
4
5
#include "
girl.h
"
6
7
/* NormalGirl class
8
* Inherits Girl publicly
9
*/
10
class
NormalGirl
:
public
Girl
{
11
private
:
12
static
const
GirlNature
nature
=
normal
;
13
public
:
15
NormalGirl
(std::string
name
,
int
attr
,
int
intel
,
int
budget
,
BoyType
boy_type
);
17
float
getHappiness
()
override
;
19
GirlNature
getNature
()
override
;
20
};
21
22
#endif
/* NORMALGIRL_H */
BoyType
BoyType
Definition:
girl_type.h:12
Girl::name
std::string name
Definition:
girl.h:24
Girl
Definition:
girl.h:18
NormalGirl::nature
static const GirlNature nature
Definition:
normalgirl.h:12
NormalGirl
Definition:
normalgirl.h:10
Girl::boy_type
BoyType boy_type
Definition:
girl.h:29
NormalGirl::getHappiness
float getHappiness() override
Definition:
normalgirl.cpp:19
GirlNature
GirlNature
Definition:
girl_type.h:5
Girl::attr
int attr
Definition:
girl.h:25
NormalGirl::NormalGirl
NormalGirl(std::string name, int attr, int intel, int budget, BoyType boy_type)
Definition:
normalgirl.cpp:6
Girl::budget
int budget
Definition:
girl.h:27
NormalGirl::getNature
GirlNature getNature() override
Definition:
normalgirl.cpp:34
girl.h
Girl::intel
int intel
Definition:
girl.h:26
normal
Definition:
girl_type.h:7
girls
normalgirl.h
Generated by
1.8.11