cocos2d-X 节点(CCActionFrameEasing.h)API

本文来自http://blog.csdn.net/runaying ,引用必须注明出处!

cocos2d-X 节点(CCActionFrameEasing.h)API

温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记

放缓动作帧的枚举类型,反弹时间,放缓值

/////cocos2d-x-3.0alpha0/extensions/CocoStudio/Action
//放缓动作帧的枚举类型,反弹时间,放缓值


#ifndef __ActionFrameEasing_H__
#define __ActionFrameEasing_H__

#include "cocos2d.h"
#include "ExtensionMacros.h"
#include "../Json/CSContentJsonDictionary.h"

NS_CC_EXT_BEGIN

enum FrameEasingType
{
	kframeEasingInstant,

	kframeEasingLinear,

	kframeEasingCubicIn,
	kframeEasingCubicOut,
	kframeEasingCubicInOut,

	kframeEasingElasticIn,
	kframeEasingElasticOut,
	kframeEasingElasticInOut,

	kframeEasingBounceIn,
	kframeEasingBounceOut,
	kframeEasingBounceInOut,

	kframeEasingBackIn,
	kframeEasingBackOut,
	kframeEasingBackInOut,
};

class ActionFrameEasing:public cocos2d::Object
{
protected:
	FrameEasingType _type;
	float _fValue;
public:
    ActionFrameEasing();
    virtual ~ActionFrameEasing();

	float bounceTime(float t);

	float easeValue(float t);
};

NS_CC_EXT_END

#endif


你可能感兴趣的:(cocos2d,api,cocos2dx,cocos2d-x)