forked from PhaseCycle/Biosystem-Simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bacteria.h
40 lines (29 loc) · 844 Bytes
/
Bacteria.h
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
40
/*
Authors: Andrew Yoder, Thomas Stryjski, Zachary O'Brien
Email: aby7159@rit.edu, tgs9181@rit.edu, zjo5244@rit.edu
Date: 12/1/18
Class: EEEE-346-01
Assignment: Project 3
Purpose: derived class for microorganisms; chemotroph/phototroph
*/
#include "MicroOrganism.h"
#include <cstdlib>
#pragma once
class Bacteria :public MicroOrganism {
protected:
double sunlight;
double chemical;
double fertility;
public:
//constructors
Bacteria(double x, double y, double z);
//getters
double get_fertility();
//setters
void set_sunlight(double x);
void set_chemical(double x);
void set_fertility(); //determines reproduction values as a function of temperature and sunlight
//other
void reproduce(Bacteria *O, double x_max, double y_max, double z_max);
void aged();
};