MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / create

Method create

Source/MoveAction.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "GameToolbox/log.h"
24
25MoveAction* 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
40bool MoveAction::initWithDuration(float duration, const ax::Vec2& deltaPosition, GroupProperties* group)
41{

Callers

nothing calls this directly

Calls 1

initWithDurationMethod · 0.45

Tested by

no test coverage detected