AnimatedBoxGrow Class
Definition
Section titled “Definition”Animates drawing a box. It can either
public class AnimatedBoxGrow : InstructionBase, IComponentInheritance object → UpdateComponent → InstructionBase
Implements IComponent
Constructors
Section titled “Constructors”AnimatedBoxGrow(Rectangle, TimeSpan, ShapeParameters)
Section titled “AnimatedBoxGrow(Rectangle, TimeSpan, ShapeParameters)”Creates a new animated box defined by the area. The box is animated over time and drawn with the set of shape parameters provided.
public AnimatedBoxGrow(Rectangle area, TimeSpan duration, ShapeParameters shapeParameters)Parameters
Section titled “Parameters”area SadRogue.Primitives.Rectangle
The final area the box is shown on the screen.
duration TimeSpan
How long it takes to animate.
shapeParameters ShapeParameters
The shape parameters that define how the box looks.
Exceptions
Section titled “Exceptions”Methods
Section titled “Methods”Update(IScreenObject, TimeSpan)
Section titled “Update(IScreenObject, TimeSpan)”Executes the instruction. This base class method should be called from derived classes. If the IsFinished property is set to true, will try to repeat if needed and will raise all appropriate events.
public override void Update(IScreenObject componentHost, TimeSpan delta)Parameters
Section titled “Parameters”componentHost IScreenObject
The object that hosts this instruction.
delta TimeSpan
The time that has elapsed since this method was last called.
OnAdded(IScreenObject)
Section titled “OnAdded(IScreenObject)”Called when the component is added to a host.
public override void OnAdded(IScreenObject host)Parameters
Section titled “Parameters”host IScreenObject
The host that added the component.