Public Member Functions | Protected Attributes | Static Protected Attributes

Tutorial Class Reference

Basic tutorial for the game. More...

#include <Tutorial.h>

List of all members.

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.

Detailed Description

Basic tutorial for the game.

Bried slideshow tutorial which tells players how to play the game.


Constructor & Destructor Documentation

Tutorial::Tutorial (  ) 

Constructor.

Create a new tutorial.

Tutorial::~Tutorial (  ) 

Destructor.

Delete the tutorial and release all associated memory.


Member Function Documentation

void Tutorial::Draw (  ) 

Draw.

Render the tutorial.

CIwFVec2 Tutorial::GetTickPosition (  ) 

Get tick position.

Get the position of the tick button.

Returns:
Vector2 position.
float Tutorial::GetTickRadius (  ) 

Get tick radius.

Get the radius of the tick button.

Returns:
float radius.
int Tutorial::Update ( double  deltaTime  ) 

Update.

Update the tutorial - check for user inputs.

Parameters:
[in] deltaTime Time since last update.
Returns:
int representing whether there has been user input.

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