2012-09-17 14:27:17 +08:00
|
|
|
#ifndef __CCB_CCSEQUENCE_H__
|
|
|
|
#define __CCB_CCSEQUENCE_H__
|
|
|
|
|
|
|
|
#include <string>
|
2014-01-17 13:35:58 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
#include "CCRef.h"
|
2013-03-15 08:43:56 +08:00
|
|
|
#include "CCBSequenceProperty.h"
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
namespace cocosbuilder {
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
class CCBSequence : public cocos2d::Ref
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCBSequence();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-03-19 06:26:45 +08:00
|
|
|
~CCBSequence();
|
2012-09-17 14:27:17 +08:00
|
|
|
float getDuration();
|
|
|
|
void setDuration(float fDuration);
|
|
|
|
|
2013-03-15 08:43:56 +08:00
|
|
|
CCBSequenceProperty* getCallbackChannel();
|
|
|
|
void setCallbackChannel(CCBSequenceProperty* callbackChannel);
|
|
|
|
|
|
|
|
CCBSequenceProperty* getSoundChannel();
|
|
|
|
void setSoundChannel(CCBSequenceProperty* soundChannel);
|
|
|
|
|
2012-09-17 14:27:17 +08:00
|
|
|
const char* getName();
|
|
|
|
void setName(const char *pName);
|
|
|
|
|
|
|
|
int getSequenceId();
|
|
|
|
void setSequenceId(int nSequenceId);
|
|
|
|
|
|
|
|
int getChainedSequenceId();
|
|
|
|
void setChainedSequenceId(int nChainedSequenceId);
|
2013-07-27 22:31:57 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
float _duration;
|
|
|
|
std::string _name;
|
|
|
|
int mSequenceId;
|
|
|
|
int mChainedSequenceId;
|
|
|
|
CCBSequenceProperty* mCallbackChannel;
|
|
|
|
CCBSequenceProperty* mSoundChannel;
|
2012-09-17 14:27:17 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
}
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif // __CCB_CCSEQUENCE_H__
|