Oxygine  1
2g game engine
TweenAnim.h
1 #pragma once
2 #include "oxygine-include.h"
3 
4 namespace oxygine
5 {
13  class TweenAnim
14  {
15  public:
16  typedef Sprite type;
17 
19  TweenAnim(const ResAnim* resAnim, int row = 0);
20 
22  TweenAnim(const ResAnim* resAnim, int startFrame, int endFrame);
23 
24  void init(Sprite& actor);
25  void done(Sprite& actor) {}
26 
27  const ResAnim* getResAnim() const {return _resAnim;}
28  int getRow() const {return _row;}
29  int getStart() const {return _start;}
30  int getEnd() const {return _end;}
31 
33  void setResAnim(const ResAnim* resAnim);
34 
36  void setInterval(int start, int end);
37 
38  void update(Sprite& actor, float p, const UpdateState& us);
39 
40  protected:
41  virtual void _setAnimFrame(Sprite&, const AnimationFrame&);
42  const ResAnim* _resAnim;
43  int _row;
44  int _start;
45  int _end;
46  };
47 }
Definition: Sprite.h:14
void setInterval(int start, int end)
Definition: AnimationFrame.h:28
Definition: UpdateState.h:6
–oxgl-end–!
Definition: Actor.h:14
Definition: ResAnim.h:13
Definition: TweenAnim.h:13
TweenAnim(const ResAnim *resAnim, int row=0)
void setResAnim(const ResAnim *resAnim)