class FrameAnimatorObserver
Defined in:
The C4Animation.h
FrameAnimatorObserver
class is an observer that can be installed on a FrameAnimator
object to listen for animation cues.
Definition
template <class observerType> class FrameAnimatorObserver : public ExclusiveObserver<observerType, FrameAnimator>
Template Parameters
observerType |
The type of the class for which a notification function is called when an event occurs. |
Constructor
FrameAnimatorObserver(observerType *observer, void (observerType::*callback)(FrameAnimator *, CueType));
Parameters
observer |
A pointer to the object for which a notification function is called when an event occurs. |
callback |
A pointer to a member function (the notification function) of the object specified by the observer parameter that is called when an event occurs.
|
Description
The FrameAnimatorObserver
class is an observer that can be installed on a FrameAnimator
object to listen for animation cues. Once it has been installed by calling the ExclusiveObservable::SetObserver
function for a FrameAnimator
object, the notification function specified by the callback
parameter is called whenever a playing animation passes a cue, as defined inside the animation resource. A pointer to the FrameAnimator
object and the type of the cue are passed to the notification function.
Base Classes
ExclusiveObserver<observerType, FrameAnimator> |
A FrameAnimatorObserver object is a specific type of exclusive observer.
|