| 67 | } |
| 68 | |
| 69 | std::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 | |
| 84 | bool ActionManager::removeActionByTag( const Action::UniqueID& tag ) { |
| 85 | return removeAction( getActionByTag( tag ) ); |
no test coverage detected