17 lines
555 B
C++
17 lines
555 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "entt/entity/entity.hpp"
|
|
|
|
// Repair behavior for ships with repair modules. The evaluator picks the nearest
|
|
// damaged friendly as currentTarget; the executor moves toward it and assigns
|
|
// in-range repair tools. RepairSystem applies the actual healing.
|
|
struct RepairBehavior
|
|
{
|
|
std::optional<entt::entity> currentTarget;
|
|
float maxRepairRange_tiles = 0.0f;
|
|
float orbitRadius_tiles = 0.0f; // REQ-SHP-ORBIT
|
|
float score = 0.0f;
|
|
};
|