1 #ifndef FPPGAMETUTORIAL_H
2 #define FPPGAMETUTORIAL_H
5 * Copyright (c) 2016 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/public-api/actors/actor.h>
22 #include <dali/public-api/render-tasks/render-task.h>
23 #include <dali/public-api/common/stage.h>
24 #include <dali/public-api/signals/connection-tracker.h>
25 #include <dali-toolkit/public-api/controls/text-controls/text-label.h>
27 class FppGameTutorialController : public Dali::ConnectionTracker
32 * Creates new instance of FppGameTutorialController
34 FppGameTutorialController();
37 * Destroys instance of FppGameTutorialController
39 ~FppGameTutorialController();
42 * Displays UI with tutorial
44 void DisplayTutorial();
47 * Handles tutorial touch input
48 * @param[in] touchEvent Incoming touch event in the UI space
50 void OnTouch( const Dali::TouchData& touchEvent );
53 * Handles tutorial animation finished signal
54 * @param[in] animation Animation object
56 void OnTutorialAnimationFinished( Dali::Animation& animation );
59 * Handles tutorial completion stage
60 * @param animation Animation object
62 void OnTutorialComplete( Dali::Animation& animation );
66 Dali::RenderTask mTutorialRenderTask; /// RenderTask associated with rendering tutorial
67 Dali::Actor mUiRoot; /// The parent actor for tutorial UI
68 Dali::Toolkit::TextLabel mLeftLabel; /// Text label displaying left message
69 Dali::Toolkit::TextLabel mRightLabel; /// Text label displaying right message
70 bool mLeftTutorialComplete; /// Flag indicating the walk (left) tutorial action has been performed
71 bool mRightTutorialComplete; /// Flag indicating the look (right) tutorial action has been performed
75 #endif // FPPGAMETUTORIAL_H