CCBSequenceProperty.h 747 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __CCB_SEQUENCE_PROPERTY_H__
  2. #define __CCB_SEQUENCE_PROPERTY_H__
  3. #include "base/CCRef.h"
  4. #include "base/CCVector.h"
  5. #include "editor-support/cocosbuilder/CCBKeyframe.h"
  6. namespace cocosbuilder {
  7. class CC_DLL CCBSequenceProperty : public cocos2d::Ref
  8. {
  9. public:
  10. /**
  11. * @js ctor
  12. */
  13. CCBSequenceProperty();
  14. /**
  15. * @js NA
  16. * @lua NA
  17. */
  18. ~CCBSequenceProperty();
  19. virtual bool init();
  20. const char* getName();
  21. void setName(const char* pName);
  22. int getType();
  23. void setType(int type);
  24. cocos2d::Vector<CCBKeyframe*>& getKeyframes();
  25. private:
  26. std::string _name;
  27. int _type;
  28. cocos2d::Vector<CCBKeyframe*> _keyframes;
  29. };
  30. }
  31. #endif // __CCB_SEQUENCE_PROPERTY_H__