MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / DrawMissile

Function DrawMissile

Source/engine/render/scrollrt.cpp:345–351  ·  view source on GitHub ↗

* @brief Render a missile sprites for a given tile * @param out Output buffer * @param tilePosition dPiece coordinates * @param targetBufferPosition Output buffer coordinates * @param pre Is the sprite in the background */

Source from the content-addressed store, hash-verified

343 * @param pre Is the sprite in the background
344 */
345void DrawMissile(const Surface &out, Point tilePosition, Point targetBufferPosition, bool pre, int lightTableIndex)
346{
347 const auto range = MissilesAtRenderingTile.equal_range(tilePosition);
348 for (auto it = range.first; it != range.second; it++) {
349 DrawMissilePrivate(out, *it->second, targetBufferPosition, pre, lightTableIndex);
350 }
351}
352
353/**
354 * @brief Render a monster sprite

Callers 1

DrawDungeonFunction · 0.85

Calls 1

DrawMissilePrivateFunction · 0.85

Tested by

no test coverage detected