Basic tutorial for the game. More...
#include <Tutorial.h>
Public Member Functions | |
| Tutorial () | |
| ~Tutorial () | |
| int | Update (double deltaTime) |
| void | Draw () |
| CIwFVec2 | GetTickPosition () |
| float | GetTickRadius () |
Protected Attributes | |
| CIw2DImage * | m_texture [m_numSlides] |
| Array of tutorial slideshow images. | |
| CIw2DImage * | m_infoIcon |
| Image for the info button. | |
| CIw2DImage * | m_tickIcon |
| Image for the unhighlighted tick button. | |
| CIw2DImage * | m_greenTickIcon |
| Image for the highlighted tick button. | |
| CIwFVec2 | m_position |
| Position of the tutorial (top left corner). | |
| CIwFVec2 | m_infoPosition |
| Position of the info icon (top left corner). | |
| CIwFVec2 | m_tickPosition |
| Position of the tick button (top left corner). | |
| float | m_counter |
| Counter for making the tick button "animate". | |
| float | m_tickScale |
| Current scale of the tick button. | |
| bool | m_scaleUp |
| Is the tick button scaling up or down? | |
| float | m_tickScaleSpeed |
| Speed for the tick button scaling. | |
| float | m_tickScaleMax |
| Max limit for the scale of the tick button. | |
| float | m_tickScaleMin |
| Min limit for the scale of the tick button. | |
| float | m_counterSpeed |
| Speed for increasing the counter. | |
Static Protected Attributes | |
| static const int | m_numSlides = 12 |
| Number of slideshow images. | |
Basic tutorial for the game.
Bried slideshow tutorial which tells players how to play the game.
| Tutorial::Tutorial | ( | ) |
Constructor.
Create a new tutorial.
| Tutorial::~Tutorial | ( | ) |
Destructor.
Delete the tutorial and release all associated memory.
| void Tutorial::Draw | ( | ) |
Draw.
Render the tutorial.
| CIwFVec2 Tutorial::GetTickPosition | ( | ) |
Get tick position.
Get the position of the tick button.
| float Tutorial::GetTickRadius | ( | ) |
Get tick radius.
Get the radius of the tick button.
| int Tutorial::Update | ( | double | deltaTime | ) |
Update.
Update the tutorial - check for user inputs.
| [in] | deltaTime | Time since last update. |
1.7.1