Creepy-simulation
 
Loading...
Searching...
No Matches
view.view.DrawExplosion Class Reference

Public Member Functions

 __init__ (self, points)
 
 __call__ (self, drawer, scale=1)
 

Public Attributes

 explosion_frame_index
 
 points
 
 explosion_timer
 

Protected Member Functions

 _update_frame (self, frame_count)
 

Detailed Description

@class DrawExplosion
@brief Handles the animation of explosions.

The DrawExplosion class manages the rendering and frame updates for explosion animations
based on their positions and timing.

Constructor & Destructor Documentation

◆ __init__()

view.view.DrawExplosion.__init__ (   self,
  points 
)
Initializes a DrawExplosion object.

@param points: A list of points where the explosion occurs.

Member Function Documentation

◆ __call__()

view.view.DrawExplosion.__call__ (   self,
  drawer,
  scale = 1 
)
Renders the explosion frames at the specified points.

@param drawer: The object responsible for rendering.
@param image_provider: The ImageProvider object providing the explosion images.

◆ _update_frame()

view.view.DrawExplosion._update_frame (   self,
  frame_count 
)
protected
Updates the sparkle frame based on the elapsed time.

@param frame_count: The total number of frames in the explosion animation.
@return: True if the animation has completed, otherwise False.

Member Data Documentation

◆ explosion_frame_index

view.view.DrawExplosion.explosion_frame_index

◆ explosion_timer

view.view.DrawExplosion.explosion_timer

◆ points

view.view.DrawExplosion.points

The documentation for this class was generated from the following file: