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

Method removeAllActionsFromTarget

core/2d/ActionManager.cpp:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void ActionManager::removeAllActionsFromTarget(Node* target)
173{
174 // explicit null handling
175 if (target == nullptr)
176 {
177 return;
178 }
179
180 auto actionIt = _targets.find(target);
181 if (actionIt != _targets.end())
182 removeTargetActionHandle(actionIt);
183}
184
185void ActionManager::removeTargetActionHandle(std::unordered_map<Node*, ActionHandle>::iterator& actionIt)
186{

Callers 1

stopAllActionsMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected