#ifndef __RED_CCSEQUENCE_H__ #define __RED_CCSEQUENCE_H__ #include #include "base/CCRef.h" #include "REDSequenceProperty.h" namespace redream { class CC_DLL REDSequence : public cocos2d::Ref { public: REDSequence(); /** * @js NA * @lua NA */ ~REDSequence(); float getDuration(); void setDuration(float fDuration); REDSequenceProperty* getCallbackChannel(); void setCallbackChannel(REDSequenceProperty* callbackChannel); REDSequenceProperty* getSoundChannel(); void setSoundChannel(REDSequenceProperty* soundChannel); REDSequenceProperty* getWiseChannel(); void setWiseChannel(REDSequenceProperty* wiseChannel); const char* getName(); void setName(const char *pName); int getSequenceId(); void setSequenceId(int nSequenceId); int getChainedSequenceId(); void setChainedSequenceId(int nChainedSequenceId); private: float _duration; std::string _name; int mSequenceId; int mChainedSequenceId; REDSequenceProperty* mCallbackChannel; REDSequenceProperty* mSoundChannel; REDSequenceProperty* mWiseChannel; }; } #endif // __RED_CCSEQUENCE_H__