MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getActionsByTagFromTarget

Method getActionsByTagFromTarget

src/eepp/scene/actionmanager.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69std::vector<Action*> ActionManager::getActionsByTagFromTarget( Node* target,
70 const Action::UniqueID& tag ) {
71 Lock l( mMutex );
72 std::vector<Action*> actions;
73
74 for ( auto it = mActions.begin(); it != mActions.end(); ++it ) {
75 Action* action = *it;
76
77 if ( action->getTarget() == target && action->getTag() == tag )
78 actions.emplace_back( action );
79 }
80
81 return actions;
82}
83
84bool ActionManager::removeActionByTag( const Action::UniqueID& tag ) {
85 return removeAction( getActionByTag( tag ) );

Callers 1

getActionsByTagMethod · 0.80

Calls 4

getTargetMethod · 0.80
getTagMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected