Detailed tutorial for the game. More...
#include <ExtendedTutorial.h>
Public Member Functions | |
| ExtendedTutorial () | |
| ~ExtendedTutorial () override | |
| void | Update (double deltaTime) |
| void | Draw () |
| void | DrawSlides () |
| CIwFVec2 | GetTickPosition () |
| float | GetTickRadius () |
| void | SetSlide (int slide) |
Protected Attributes | |
| CIw2DImage * | m_texture [m_numSlides] |
| Array of textures for the tutorial. | |
| CIw2DImage * | m_infoIcon |
| Info button image. | |
| CIw2DImage * | m_tickIcon |
| Image for the tick button. | |
| CIw2DImage * | m_greenTickIcon |
| Hover-over image for the tick. | |
| CIw2DImage * | m_rightIcon |
| Right arrow image. | |
| CIw2DImage * | m_greenRightIcon |
| Hoverover image for the right arrow image. | |
| CIw2DImage * | m_leftIcon |
| Left arrow image. | |
| CIw2DImage * | m_greenLeftIcon |
| Hoverover image for the green arrow image. | |
| CIwFVec2 | m_position |
| Position for the tutorial (top left corner). | |
| CIwFVec2 | m_infoPosition |
| Position for the info button. | |
| CIwFVec2 | m_tickPosition |
| Position for the tick button. | |
| CIwFVec2 | m_rightPosition |
| Position for the right arrow button. | |
| CIwFVec2 | m_leftPosition |
| Position for the left arrow button. | |
| float | m_counter |
| Current slide index. | |
| float | m_slideCounter |
| Timer for animated slide. | |
Static Protected Attributes | |
| static const int | m_numSlides = 14 |
| Number of tutorial slides. | |
Detailed tutorial for the game.
In-depth slideshow tutorial which tells players how to play the game and how to win.
| ExtendedTutorial::ExtendedTutorial | ( | ) |
Constructor.
Creates a new tutorial.
| ExtendedTutorial::~ExtendedTutorial | ( | ) | [override] |
Destructor.
Destroy the tutorial and release all associated memory.
| void ExtendedTutorial::Draw | ( | ) | [virtual] |
| void ExtendedTutorial::DrawSlides | ( | ) |
Draw slides.
Draw the slides in the tutorial.
| CIwFVec2 ExtendedTutorial::GetTickPosition | ( | ) |
Get Tick Position.
Return the position of the tick which the player uses to return to the main menu.
| float ExtendedTutorial::GetTickRadius | ( | ) |
Get Tick Radius.
Return the radius of the tick which the player uses to return to the main menu.
| void ExtendedTutorial::SetSlide | ( | int | slide | ) |
Set Slide.
Set the current slide (image) of the tutorial.
| [in] | slide | The new slide. |
| void ExtendedTutorial::Update | ( | double | deltaTime | ) |
Update.
Update the tutorial - check for user inputs.
| [in] | deltaTime | Time since last update. |
1.7.1