cocos2d - x 노드 (CCActionProgressTimer. h) API
cocos2d - x 노드 (CCActionProgressTimer. h) API
따뜻 한 알림: 여러분 이 더 잘 공부 할 수 있 도록 본인 의 블 로 그 를 보 는 것 을 강력 추천 합 니 다. Cocos2d - X 권위 있 는 안내서 노트
/ / 진도 표시 줄
///cocos2d-x-3.0alpha0/cocos2dx/actions
//
#ifndef __ACTION_CCPROGRESS_TIMER_H__
#define __ACTION_CCPROGRESS_TIMER_H__
#include "CCActionInterval.h"
NS_CC_BEGIN
/**
* @addtogroup actions
* @{
*/
/**
@brief Progress to percentage //
@since v0.99.1
*/
class CC_DLL ProgressTo : public ActionInterval
{
public:
/** duration 、 percent */
static ProgressTo* create(float duration, float fPercent);
/** duration 、 percent */
bool initWithDuration(float duration, float fPercent);
//
// Overrides
//
virtual ProgressTo* clone() const override;
virtual ProgressTo* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
protected:
float _to;
float _from;
};
/**
@brief ( )
@since v0.99.1
*/
class CC_DLL ProgressFromTo : public ActionInterval
{
public:
/** Creates and initializes the action with a duration, a "from" percentage and a "to" percentage */
static ProgressFromTo* create(float duration, float fFromPercentage, float fToPercentage);
/** Initializes the action with a duration, a "from" percentage and a "to" percentage */
bool initWithDuration(float duration, float fFromPercentage, float fToPercentage);
//
// Overrides
//
virtual ProgressFromTo* clone() const override;
virtual ProgressFromTo* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
protected:
float _to;
float _from;
};
// end of actions group
/// @}
NS_CC_END
#endif // __ACTION_CCPROGRESS_TIMER_H__
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Cocos2dv3 Sprite Builder 및 Swift 구성 요소 연결, 다양한 애니메이션이번 내용은 이 편과 상관없이, 스prite Builder가 설정한 구성 요소를 알고 싶은 사람을 위해 썼습니다. 만약 네가 이것을 할 수 있다면, 나는 네가 어떤 게임을 하고 싶은지 상상할 수 있을 것이라고 생각한...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.