| 118 | } |
| 119 | |
| 120 | CircleWave* CircleWave::create(float duration, Color4B color, float radiusMin, float radiusMax, bool easing, bool filled, float lineWidth) |
| 121 | { |
| 122 | auto pRet = new(std::nothrow) CircleWave(); |
| 123 | |
| 124 | if (pRet && pRet->init(duration, color, radiusMin, radiusMax, easing, lineWidth, filled)) |
| 125 | { |
| 126 | pRet->autorelease(); |
| 127 | return pRet; |
| 128 | } |
| 129 | else |
| 130 | { |
| 131 | AX_SAFE_DELETE(pRet); |
| 132 | return nullptr; |
| 133 | } |
| 134 | } |