dmuratshin 9 years ago
parent
commit
df10832dc5
2 changed files with 7 additions and 0 deletions
  1. 5 0
      src/flow/flow.cpp
  2. 2 0
      src/flow/flow.h

+ 5 - 0
src/flow/flow.cpp

@@ -114,6 +114,11 @@ namespace oxygine
             _wasTouchBlocked = true;
         }
 
+        bool Flow::hasSceneInStack(spScene scene) const
+        {
+            return std::find(scenes.begin(), scenes.end(), scene) != scenes.end();
+        }
+
         void Flow::phaseBegin(spScene current, spScene next, bool back)
         {
             _back = back;

+ 2 - 0
src/flow/flow.h

@@ -52,6 +52,8 @@ namespace oxygine
 
             void blockedTouch(Event*);
 
+            bool hasSceneInStack(spScene) const;
+
             std::vector<spScene> scenes;
             std::vector<spScene> scenes2show;