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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user