2012-09-17 14:27:17 +08:00
|
|
|
#ifndef __CCB_CCSEQUENCE_H__
|
|
|
|
#define __CCB_CCSEQUENCE_H__
|
|
|
|
|
|
|
|
#include <string>
|
2012-09-19 18:41:50 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "ExtensionMacros.h"
|
2013-03-15 08:43:56 +08:00
|
|
|
#include "CCBSequenceProperty.h"
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
|
|
|
|
2013-06-20 14:15:53 +08:00
|
|
|
class CCBSequence : public Object
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCBSequence();
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
NS_CC_EXT_END
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __CCB_CCSEQUENCE_H__
|