| 159 | } |
| 160 | |
| 161 | void AIBlockUnit::notifyUnderFire(Vec3<int> position) |
| 162 | { |
| 163 | for (auto &ai : aiList) |
| 164 | { |
| 165 | if (!ai->active) |
| 166 | { |
| 167 | continue; |
| 168 | } |
| 169 | ai->notifyUnderFire(position); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | void AIBlockUnit::notifyHit(Vec3<int> position) |
| 174 | { |