GAF Library
Generic Animation Format
 All Classes Functions Pages
GAFDelegates.h
1 #pragma once
2 
4 class GAFSprite;
5 class GAFAnimation;
6 
8 {
9 public:
10  virtual void onFinishSequence(GAFAnimatedObject * object, const std::string& sequenceName) = 0;
11 };
12 
14 {
15 public:
16  virtual void onAnimationFinishedPlayDelegate(GAFAnimation* animation) { }
17  virtual void onAnimationStartedNextLoopDelegate(GAFAnimation* animation) { }
18 };
19 
21 {
22 public:
23 
24  virtual void onTexturePreLoad(std::string& path) = 0;
25 };
26 
27 
32 
34 {
35 public:
39 
40  virtual void onFramePlayed(GAFAnimatedObject * object, int frame) = 0;
41 };
42 
44 {
45 public:
46  virtual void onFrameDisplayed(GAFAnimatedObject * object, const GAFSprite * subobject) = 0;
47 };
Definition: GAFAnimatedObject.h:33
Definition: GAFSprite.h:23
virtual void onFramePlayed(GAFAnimatedObject *object, int frame)=0
Definition: GAFDelegates.h:43
Definition: GAFDelegates.h:33
Definition: GAFDelegates.h:13
Definition: GAFDelegates.h:20
Definition: GAFDelegates.h:7
Definition: GAFAnimation.h:19