Document effect and effect_ticks parameters for patient effects. (#2000)

This commit is contained in:
Robert Flack
2021-07-10 19:07:41 -04:00
committed by GitHub
parent e954dd5cee
commit bf1957efa9
2 changed files with 5 additions and 1 deletions

View File

@@ -338,7 +338,9 @@ class animation_manager {
@param iX The screen position to use as the animation X origin.
@param iY The screen position to use as the animation Y origin.
@param iFlags Zero or more THDrawFlags flags.
@param effect The animation effect to apply.
@param patient_effect The animation effect to apply to the patient.
@param patient_effect_offset The number of ticks to offset the effect
animation by.
*/
void draw_frame(render_target* pCanvas, size_t iFrame,
const ::layers& oLayers, int iX, int iY, uint32_t iFlags,

View File

@@ -549,6 +549,8 @@ class sprite_sheet {
@param iX X position to draw the sprite.
@param iY Y position to draw the sprite.
@param iFlags Flags to apply for drawing.
@param effect_ticks The number of ticks into the effect animation.
@param effect The animation effect to apply to the sprite.
*/
void draw_sprite(render_target* pCanvas, size_t iSprite, int iX, int iY,
uint32_t iFlags, size_t effect_ticks = 0u,