forked from PhaseCycle/Biosystem-Simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Animal.h
43 lines (34 loc) · 863 Bytes
/
Animal.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
41
42
/*
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 macroorganisms; herbivore?
*/
#include "MacroOrganism.h"
#include "Plant.h"
#include <cmath>
#pragma once
class Animal: public MacroOrganism{
protected:
double co2;
double o2;
double fertility;
public:
//constructors
Animal(double x, double y);
//getters
double get_co2();
double get_fertility();
//setters
void set_o2(double x);
void set_co2(double x);
void set_fertility(); //determines reproduction values as a function of temperature and sunlight
//other
//void reproduce(Organism *O);
void reproduce(Animal *a, double x_max, double y_max);
void reproduce(Organism *O);
void aged();
Animal operator+(Plant *p);
};