1 #ifndef FPPGAMETUTORIAL_H
2 #define FPPGAMETUTORIAL_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali-toolkit/public-api/controls/text-controls/text-label.h>
22 #include <dali/public-api/actors/actor.h>
23 #include <dali/public-api/adaptor-framework/window.h>
24 #include <dali/public-api/render-tasks/render-task.h>
25 #include <dali/public-api/signals/connection-tracker.h>
27 class FppGameTutorialController : public Dali::ConnectionTracker
31 * Creates new instance of FppGameTutorialController
33 FppGameTutorialController();
36 * Destroys instance of FppGameTutorialController
38 ~FppGameTutorialController();
41 * Displays UI with tutorial
42 * @param[in] window The window to display the tutorial on
44 void DisplayTutorial(Dali::Window window);
47 * Handles tutorial touch input
48 * @param[in] touchEvent Incoming touch event in the UI space
50 void OnTouch(const Dali::TouchEvent& touchEvent);
53 * Handles tutorial animation finished signal
54 * @param[in] animation Animation object
56 void OnTutorialAnimationFinished(Dali::Animation& animation);
59 * Handles tutorial completion window
60 * @param animation Animation object
62 void OnTutorialComplete(Dali::Animation& animation);
65 Dali::RenderTask mTutorialRenderTask; /// RenderTask associated with rendering tutorial
66 Dali::Actor mUiRoot; /// The parent actor for tutorial UI
67 Dali::Toolkit::TextLabel mLeftLabel; /// Text label displaying left message
68 Dali::Toolkit::TextLabel mRightLabel; /// Text label displaying right message
69 bool mLeftTutorialComplete; /// Flag indicating the walk (left) tutorial action has been performed
70 bool mRightTutorialComplete; /// Flag indicating the look (right) tutorial action has been performed
74 #endif // FPPGAMETUTORIAL_H