AnimatedSprite2D.pkg 523 B

1234567891011121314151617181920212223
  1. $#include "AnimatedSprite2D.h"
  2. enum CycleMode
  3. {
  4. CM_LOOP = 0,
  5. CM_CLAMP,
  6. CM_PINGPONG,
  7. };
  8. class AnimatedSprite2D : public StaticSprite2D
  9. {
  10. void SetSpeed(float speed);
  11. void SetCycleMode(CycleMode cycleMode);
  12. void SetAnimation(Animation2D* animation);
  13. float GetSpeed() const;
  14. CycleMode GetCycleMode() const;
  15. Animation2D* GetAnimation() const;
  16. tolua_property__get_set float speed;
  17. tolua_property__get_set CycleMode cycleMode;
  18. tolua_property__get_set Animation2D* animation;
  19. };