-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFungus.h
More file actions
40 lines (26 loc) · 669 Bytes
/
Fungus.h
File metadata and controls
40 lines (26 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
Authors: Andrew Yoder, Thomas Stryjski, Zachary O'Brien
Email: aby7159@rit.edu, tgs9181@rit.edu, zjo5244@rit.edu
Date: 12/8/18
Class: EEEE-346-01
Assignment: Project 3
Purpose: derived class for small fungi
*/
#include "MicroOrganism.h"
#include "Bacteria.h"
#pragma once
class Fungus:public MicroOrganism {
protected:
double fertility;
public:
//constructors
Fungus(double x, double y, double);
//getters
double get_fertility();
//setters
void set_fertility();
//others
void reproduce(Fungus *O, double x_max, double y_max, double z_max);
void aged();
Fungus operator+(Bacteria *b);
};