Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
Loading...
Searching...
No Matches
forage_types.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020 W. Traylor <wolfgang.traylor@senckenberg.de>
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
11#ifndef FAUNA_FORAGE_TYPES_H
12#define FAUNA_FORAGE_TYPES_H
13
14#include <cassert>
15#include <set>
16#include <string>
17
18namespace Fauna {
19
21enum class ForageType {
23 Grass,
25 Inedible // KEEP THIS THE LAST ELEMENT!!
26};
27
30
33
42extern const std::set<ForageType> FORAGE_TYPES;
43
45
52const std::string& get_forage_type_name(const ForageType);
53
54} // namespace Fauna
55
56#endif // FAUNA_FORAGE_TYPES_H
Definition: average.h:16
const std::string & get_forage_type_name(const ForageType)
Get a short, lowercase string identifier for a forage type.
Definition: forage_types.cpp:30
const int FORAGE_TYPE_COUNT
Number of elements in ForageType.
Definition: forage_types.h:29
ForageType
Different types of forage.
Definition: forage_types.h:21
@ Inedible
Plants that are not edible for herbivores.
@ Grass
Forage type grass.
const std::set< ForageType > FORAGE_TYPES
Definition: forage_types.cpp:27