-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathST_colonization.h
More file actions
42 lines (37 loc) · 1.15 KB
/
ST_colonization.h
File metadata and controls
42 lines (37 loc) · 1.15 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
/**
* \file ST_colonization.h
*
* Structs and functions exported from the [colonization](\ref COLONIZATION)
* module
*
* \author Chandler Haukap
* \date January 2020
* \ingroup COLONIZATION
*/
#ifndef COLONIZATION_H
#define COLONIZATION_H
#include "ST_grid.h"
/* ------------------------------- Functions ------------------------------- */
// See ST_colonization.c for a description of these functions.
Bool colonize(int year);
void initColonization(char* fileName);
void freeColonizationMemory(void);
/* -------------------------------- structs -------------------------------- */
/**
* \brief A struct to represent a single colonization event.
*
* \ingroup COLONIZATION
*/
struct colonizationEvent_st {
/** \brief Number of the first [cell](\ref CellType) to be colonized. */
int fromCell;
/** \brief Number of the last [cell](\ref CellType) to be colonized. */
int toCell;
/** \brief Year to begin colonization. */
int startYear;
/** \brief How many years colonization lasts. */
int duration;
/** \brief The index in \ref Species of the colonizing species. */
SppIndex species;
} typedef ColonizationEvent;
#endif