Public Member Functions | Protected Attributes | Static Protected Attributes

ExtendedTutorial Class Reference

Detailed tutorial for the game. More...

#include <ExtendedTutorial.h>

Inheritance diagram for ExtendedTutorial:
Menu

List of all members.

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 Description

Detailed tutorial for the game.

In-depth slideshow tutorial which tells players how to play the game and how to win.


Constructor & Destructor Documentation

ExtendedTutorial::ExtendedTutorial (  ) 

Constructor.

Creates a new tutorial.

ExtendedTutorial::~ExtendedTutorial (  )  [override]

Destructor.

Destroy the tutorial and release all associated memory.


Member Function Documentation

void ExtendedTutorial::Draw (  )  [virtual]

Draw.

Draw the tutorial.

Reimplemented from Menu.

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.

Returns:
Vector2 position of the tick.
float ExtendedTutorial::GetTickRadius (  ) 

Get Tick Radius.

Return the radius of the tick which the player uses to return to the main menu.

Returns:
Float radius of the tick.
void ExtendedTutorial::SetSlide ( int  slide  ) 

Set Slide.

Set the current slide (image) of the tutorial.

Parameters:
[in] slide The new slide.
void ExtendedTutorial::Update ( double  deltaTime  ) 

Update.

Update the tutorial - check for user inputs.

Parameters:
[in] deltaTime Time since last update.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations