22#include <kiwano/2d/animation/TweenAnimation.h>
23#include <kiwano/render/Shape.h>
52 bool IsRotating()
const;
56 float GetStartValue()
const;
60 float GetEndValue()
const;
68 void SetRotating(
bool rotating);
72 void SetStartValue(
float start);
76 void SetEndValue(
float end);
87 void Init(
Actor* target)
override;
89 void UpdateTween(
Actor* target,
float percent)
override;
129 rotating_ = rotating;
路径行走动画
Definition: PathAnimation.h:35
float GetEndValue() const
获取路径终点(百分比)
Definition: PathAnimation.h:117
float GetStartValue() const
获取路径起点(百分比)
Definition: PathAnimation.h:112
bool IsRotating() const
是否沿路径切线方向旋转
Definition: PathAnimation.h:107
RefPtr< Shape > GetPath() const
获取路线
Definition: PathAnimation.h:102
void SetEndValue(float end)
设置路径终点(百分比)
Definition: PathAnimation.h:137
void SetPath(RefPtr< Shape > path)
设置路径形状
Definition: PathAnimation.h:122
void SetRotating(bool rotating)
设置沿路径切线方向旋转
Definition: PathAnimation.h:127
void SetStartValue(float start)
设置路径起点(百分比)
Definition: PathAnimation.h:132
引用计数智能指针
Definition: RefBasePtr.hpp:35
补间动画
Definition: TweenAnimation.h:37
时间段
Definition: Duration.h:48