* @brief Helper for rendering player icons (Mana Shield and Reflect) * @param out Output buffer * @param player Player reference * @param position Output buffer coordinates * @param infraVision Should infravision be applied */
| 413 | * @param infraVision Should infravision be applied |
| 414 | */ |
| 415 | void DrawPlayerIcons(const Surface &out, const Player &player, Point position, bool infraVision) |
| 416 | { |
| 417 | if (player.pManaShield) |
| 418 | DrawPlayerIconHelper(out, MissileGraphicID::ManaShield, position, &player != MyPlayer, infraVision); |
| 419 | if (player.wReflections > 0) |
| 420 | DrawPlayerIconHelper(out, MissileGraphicID::Reflect, position + Displacement { 0, 16 }, &player != MyPlayer, infraVision); |
| 421 | } |
| 422 | |
| 423 | /** |
| 424 | * @brief Render a player sprite |
no test coverage detected