mirror of https://github.com/axmolengine/axmol.git
33 lines
858 B
Plaintext
33 lines
858 B
Plaintext
|
|
#include "CCActionInterval.h"
|
|
|
|
namespace cocos2d
|
|
{
|
|
class CCProgressTo : public CCActionInterval
|
|
{
|
|
public:
|
|
|
|
bool initWithDuration(ccTime duration, float fPercent);
|
|
|
|
CCObject* copyWithZone(CCZone *pZone);
|
|
void startWithTarget(CCNode *pTarget);
|
|
void update(ccTime time);
|
|
static CCProgressTo* actionWithDuration(ccTime duration, float fPercent);
|
|
};
|
|
|
|
|
|
class CCProgressFromTo : public CCActionInterval
|
|
{
|
|
|
|
bool initWithDuration(ccTime duration, float fFromPercentage, float fToPercentage);
|
|
virtual CCObject* copyWithZone(CCZone *pZone);
|
|
virtual CCActionInterval* reverse(void);
|
|
virtual void startWithTarget(CCNode *pTarget);
|
|
virtual void update(ccTime time);
|
|
static CCProgressFromTo* actionWithDuration(ccTime duration, float fFromPercentage, float fToPercentage);
|
|
|
|
};
|
|
|
|
} // end of namespace cocos2d
|
|
|