make stations not attack other stations

This commit is contained in:
2026-04-21 21:42:54 +02:00
parent 6321e13a00
commit 2523cd6a1b
2 changed files with 4 additions and 29 deletions

View File

@@ -45,12 +45,10 @@ private:
std::vector<FireEvent>& out);
// Find the nearest valid target for a defence station within its range.
// Enemy stations target player ships + HQ + PlayerDefenceStation.
// Player stations target enemy ships only.
// Both enemy and player stations target ships of the opposing faction only.
std::optional<EntityId> acquireStationTarget(
const Building& station, bool stationIsEnemy,
const ShipSystem& ships,
const BuildingSystem& buildings) const;
const ShipSystem& ships) const;
// Return the world position of the entity, or nullopt if it no longer exists.
std::optional<QVector2D> targetPosition(EntityId id,