aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/actors/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/actors/actor.cpp')
-rw-r--r--engines/pink/actors/actor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/pink/actors/actor.cpp b/engines/pink/actors/actor.cpp
index 340b1c9f16..595d8e1146 100644
--- a/engines/pink/actors/actor.cpp
+++ b/engines/pink/actors/actor.cpp
@@ -23,6 +23,7 @@
#include "actor.h"
#include "../page.h"
#include "lead_actor.h"
+#include "../actions/action.h"
namespace Pink {
@@ -39,4 +40,11 @@ Sequencer *Actor::getSequencer() {
return _page->getSequencer();
}
+Action *Actor::findAction(Common::String &name) {
+ return *Common::find_if(_actions.begin(), _actions.end(), [&name]
+ (Action* action) {
+ return name == action->getName();
+ });;
+}
+
} // End of namespace Pink