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

Method create

Source/GroupColorAction.cpp:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "2d/ActionTween.h"
3
4GroupColorAction* GroupColorAction::create(float duration, GroupProperties* target, ax::Color3B from, ax::Color3B to, bool resetGroupState)
5{
6 GroupColorAction* ret = new GroupColorAction();
7 if (ret->initWithDuration(duration, target, from, to, resetGroupState))
8 {
9 ret->autorelease();
10 return ret;
11 }
12
13 delete ret;
14 return nullptr;
15}
16
17bool GroupColorAction::initWithDuration(float duration, GroupProperties* target, ax::Color3B from, ax::Color3B to, bool resetGroupState)
18{

Callers

nothing calls this directly

Calls 1

initWithDurationMethod · 0.45

Tested by

no test coverage detected