Antkeeper  0.0.1
ovary-component.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Christopher J. Howard
3  *
4  * This file is part of Antkeeper source code.
5  *
6  * Antkeeper source code is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Antkeeper source code is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef ANTKEEPER_GAME_OVARY_COMPONENT_HPP
21 #define ANTKEEPER_GAME_OVARY_COMPONENT_HPP
22 
25 #include <engine/entity/id.hpp>
26 #include <cstdint>
27 #include <memory>
28 
33 {
35  std::uint16_t egg_capacity{};
36 
38  std::uint16_t egg_count{};
39 
42 
45 
48 
51 
53  bool ovipositing{};
54 
57 
60 
63 };
64 
65 #endif // ANTKEEPER_GAME_OVARY_COMPONENT_HPP
std::uint16_t bone_index_type
Bone index type.
Definition: bone.hpp:31
entt::entity id
Entity ID type.
Definition: id.hpp:28
bool ovipositing
true if currently ovipositing an egg, false otherwise.
geom::line_segment< float, 3 > oviposition_path
Path along which eggs travel while being oviposited, relative to the ovipositor bone.
bone_index_type ovipositor_bone
Bone of the ovipositor.
entity::id ovipositor_egg_eid
Entity ID of the egg currently in the ovipositor (if any).
std::uint16_t egg_capacity
Maximum number of concurrent eggs.
float oviposition_duration
Duration required to lay an egg, in seconds.
std::uint16_t egg_count
Number of fully-developed eggs.
float egg_production_duration
Duration required to produce an egg, in seconds.
float elapsed_egg_production_time
Elapsed time the current egg has been in production, in seconds.
float elapsed_oviposition_time
Elapsed time the current egg has been traveling down the common oviduct, in seconds.