feat(demo): el pilot IA retén el tret si té el company en la línia de tir (evita foc amic)

This commit is contained in:
2026-05-30 10:06:30 +02:00
parent 5407f66c9e
commit 8d659c44e5
3 changed files with 40 additions and 3 deletions
+1
View File
@@ -57,6 +57,7 @@ namespace Systems::Demo {
class DemoPilot {
public:
[[nodiscard]] auto compute(const Ship& ship,
const Ship* teammate, // altra nau (nullptr si no n'hi ha): evita foc amic
const std::array<Enemy, Constants::MAX_ORNIS>& enemies,
const std::array<Bullet, static_cast<std::size_t>(Defaults::Entities::MAX_BULLETS_TOTAL)>& bullets,
const SDL_FRect& play_area,