2012-09-17 14:27:17 +08:00
|
|
|
#include "CCBSequenceProperty.h"
|
|
|
|
|
|
|
|
using namespace cocos2d;
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
|
|
|
|
|
|
|
CCBSequenceProperty::CCBSequenceProperty()
|
2013-07-27 22:31:57 +08:00
|
|
|
: _name("")
|
|
|
|
, _type(0)
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
|
|
|
init();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CCBSequenceProperty::init()
|
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
_keyframes = new Array();
|
2013-08-22 10:15:47 +08:00
|
|
|
_keyframes->init();
|
2013-08-22 11:27:19 +08:00
|
|
|
|
2012-09-17 14:27:17 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
CCBSequenceProperty::~CCBSequenceProperty()
|
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
CC_SAFE_RELEASE_NULL(_keyframes);
|
2012-09-17 14:27:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const char* CCBSequenceProperty::getName()
|
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
return _name.c_str();
|
2012-09-17 14:27:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void CCBSequenceProperty::setName(const char *pName)
|
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
_name = pName;
|
2012-09-17 14:27:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int CCBSequenceProperty::getType()
|
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
return _type;
|
2012-09-17 14:27:17 +08:00
|
|
|
}
|
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
void CCBSequenceProperty::setType(int type)
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
_type = type;
|
2012-09-17 14:27:17 +08:00
|
|
|
}
|
|
|
|
|
2013-06-20 14:15:53 +08:00
|
|
|
Array* CCBSequenceProperty::getKeyframes()
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
2013-07-27 22:31:57 +08:00
|
|
|
return _keyframes;
|
2012-09-17 14:27:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_CC_EXT_END
|