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

Method initWithDuration

Source/ColorAction.cpp:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool ColorAction::initWithDuration(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to,
38 float afrom, float ato, int copyColor, GDHSV* hsv)
39{
40 if (ActionInterval::initWithDuration(duration))
41 {
42 _hsv = hsv;
43 _copyColorId = copyColor;
44 _target = target;
45 _to = to;
46 _from = from;
47 _afrom = afrom;
48 _ato = ato;
49 return true;
50 }
51
52 return false;
53}
54
55void ColorAction::startWithTarget(ax::Node* target)
56{

Callers 1

createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected