-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEnvironment.h
More file actions
59 lines (43 loc) · 1.04 KB
/
Environment.h
File metadata and controls
59 lines (43 loc) · 1.04 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
Authors: Andrew Yoder, Thomas Stryjski, Zachary O'Brien
Email: aby7159@rit.edu, tgs9181@rit.edu, zjo5244@rit.edu
Date: 11/27/18
Class: EEEE-346-01
Assignment: Project 3
Purpose: Define the environmental conditions including
temperature and food availability. This file will
serve as the base definition for the climates.
*/
#pragma once
#include <vector>
#include <iostream>
#include "Sinusoid.h"
class Environment{
protected:
//time
int time;
int run_to_time;
//temperature
double temperature;
double max_temp;
double min_temp;
Sinusoid temp;
public:
//virtual functions
virtual void event() = 0;
virtual void print() = 0;
//constructors
Environment();
Environment(int t, double min_t, double max_t);
//getters
int get_time();
int get_run_to_time();
double getMin_temp();
double getMax_temp();
double get_temp();
//setters
void set_time(int);
void set_run_to_time(int);
void setMin_temp(double);
void setMax_temp(double);
};