MCPcopy Create free account
hub / github.com/axmolengine/axmol / removeAction

Method removeAction

core/2d/ActionManager.cpp:212–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void ActionManager::removeAction(Action* action)
213{
214 // explicit null handling
215 if (action == nullptr)
216 {
217 return;
218 }
219
220 Object* target = action->getOriginalTarget();
221 auto actionIt = _targets.find(static_cast<Node*>(target));
222 if (actionIt != _targets.end())
223 {
224 auto i = actionIt->second.actions.getIndex(action);
225 if (i != AX_INVALID_INDEX)
226 {
227 removeActionAtIndex(i, actionIt->second, actionIt);
228 }
229 }
230}
231
232void ActionManager::removeActionByTag(int tag, Node* target)
233{

Callers 1

stopActionMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
getIndexMethod · 0.45

Tested by

no test coverage detected