#include <DestructionStrategy.h>
Inherits AnimationStrategy.
Inheritance diagram for DestructionStrategy:
Public Member Functions | |
DestructionStrategy (void) | |
~DestructionStrategy (void) | |
Protected Member Functions | |
virtual void | animate ()=0 |
virtual void | onAnimationEnd () |
virtual void | onAnimationStart (LargeDisplayEvent *evt) |
Protected Attributes | |
VisComponent * | destroyer |
DestructionStrategy::DestructionStrategy | ( | void | ) |
Creates a DestructionStrategy instance.
DestructionStrategy::~DestructionStrategy | ( | void | ) |
Destroys this strategy.
virtual void DestructionStrategy::animate | ( | ) | [protected, pure virtual] |
Animates the destruction of the associated component. It is run inside the process() method.
Implements AnimationStrategy.
void DestructionStrategy::onAnimationEnd | ( | ) | [protected, virtual] |
Performs a specific action when the animation is over.
Reimplemented from AnimationStrategy.
void DestructionStrategy::onAnimationStart | ( | LargeDisplayEvent * | evt | ) | [protected, virtual] |
Performs a specific action when the animation starts.
evt | the event that triggered the animation. |
Reimplemented from AnimationStrategy.
VisComponent* DestructionStrategy::destroyer [protected] |
The component with a DestroyerStrategy that triggered this destruction.