CCBSequenceProperty.cpp 695 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #include "editor-support/cocosbuilder/CCBSequenceProperty.h"
  2. using namespace cocos2d;
  3. using namespace std;
  4. namespace cocosbuilder {
  5. CCBSequenceProperty::CCBSequenceProperty()
  6. : _name("")
  7. , _type(0)
  8. {
  9. init();
  10. }
  11. bool CCBSequenceProperty::init()
  12. {
  13. return true;
  14. }
  15. CCBSequenceProperty::~CCBSequenceProperty()
  16. {
  17. }
  18. const char* CCBSequenceProperty::getName()
  19. {
  20. return _name.c_str();
  21. }
  22. void CCBSequenceProperty::setName(const char *pName)
  23. {
  24. _name = pName;
  25. }
  26. int CCBSequenceProperty::getType()
  27. {
  28. return _type;
  29. }
  30. void CCBSequenceProperty::setType(int type)
  31. {
  32. _type = type;
  33. }
  34. cocos2d::Vector<CCBKeyframe*>& CCBSequenceProperty::getKeyframes()
  35. {
  36. return _keyframes;
  37. }
  38. }