-
Notifications
You must be signed in to change notification settings - Fork 0
/
Circular.h
60 lines (52 loc) · 1.66 KB
/
Circular.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef CIRCULAR_H
#define CIRCULAR_H
#include "MicroOrganism.h"
#include "Tissue.h"
class Circular : public MicroOrganism {
private: float radius;
public: // Do NOT make any modifications below!
/*********************************************************************
* Constructor
*
* The first @param is the id of the cell
* The second @param is the radius of the boundary
*/
Circular(int, float);
/*********************************************************************
* Destructor
*
*/
~Circular();
/*********************************************************************
* ConnectToCell
*
* See the base class explanation.
*/
void ConnectToCell(Cell* const);
/*********************************************************************
* DoesFitInto
*
* See the base class explanation.
*/
bool DoesFitInto(const Cell&) const;
/*********************************************************************
* React
*
* This type of microorganism makes the size of the cell get two times
larger without changing the center of the cell.
* As an effect of the enlarging, you should renew the cell walls.
* The microorganism size does not change.
*/
void React();
/*********************************************************************
* DoesContain
*
* Special to this type of microorganism
* Checks whether the given Particle in the @param is inside the
this microorganism, or not.
* @return true if the particle is inside, false otherwise.
*/
bool DoesContain(const Particle&) const;
/*********************************************************************/
};
#endif