21 lines
362 B
C++
21 lines
362 B
C++
#include "..\e2daction.h"
|
|
#include "..\e2dnode.h"
|
|
|
|
|
|
e2d::OpacityTo::OpacityTo(float duration, float opacity)
|
|
: OpacityBy(duration, 0)
|
|
{
|
|
_endVal = opacity;
|
|
}
|
|
|
|
e2d::OpacityTo * e2d::OpacityTo::clone() const
|
|
{
|
|
return new (e2d::autorelease) OpacityTo(_duration, _endVal);
|
|
}
|
|
|
|
void e2d::OpacityTo::_init()
|
|
{
|
|
OpacityBy::_init();
|
|
_deltaVal = _endVal - _startVal;
|
|
}
|