| 23 | #include "GameToolbox/log.h" |
| 24 | |
| 25 | MoveAction* MoveAction::create(float duration, const ax::Vec2& deltaPosition, GroupProperties* group) |
| 26 | { |
| 27 | MoveAction* ret = new MoveAction(); |
| 28 | |
| 29 | if (ret->initWithDuration(duration, deltaPosition, group)) |
| 30 | { |
| 31 | ret->autorelease(); |
| 32 | |
| 33 | return ret; |
| 34 | } |
| 35 | |
| 36 | delete ret; |
| 37 | return nullptr; |
| 38 | } |
| 39 | |
| 40 | bool MoveAction::initWithDuration(float duration, const ax::Vec2& deltaPosition, GroupProperties* group) |
| 41 | { |
nothing calls this directly
no test coverage detected