HOG2
Public Member Functions | Private Attributes | List of all members
FallingBoxTransition Class Reference

#include <ScreenTransition.h>

Inheritance diagram for FallingBoxTransition:
Inheritance graph
[legend]
Collaboration diagram for FallingBoxTransition:
Collaboration graph
[legend]

Public Member Functions

 FallingBoxTransition (int dimension)
 
virtual void Reset (float t)
 
virtual bool Step (float delta)
 
virtual void Draw (Graphics::Display &d)
 

Private Attributes

float mTime
 
int dim
 

Detailed Description

Definition at line 38 of file ScreenTransition.h.

Constructor & Destructor Documentation

◆ FallingBoxTransition()

FallingBoxTransition::FallingBoxTransition ( int  dimension)

Definition at line 51 of file ScreenTransition.cpp.

Member Function Documentation

◆ Draw()

void FallingBoxTransition::Draw ( Graphics::Display d)
virtual

Implements ScreenTransition.

Definition at line 70 of file ScreenTransition.cpp.

References Colors::black, d, dim, and mTime.

◆ Reset()

void FallingBoxTransition::Reset ( float  t)
virtual

Implements ScreenTransition.

Definition at line 54 of file ScreenTransition.cpp.

References mTime.

◆ Step()

bool FallingBoxTransition::Step ( float  delta)
virtual

Implements ScreenTransition.

Definition at line 58 of file ScreenTransition.cpp.

References mTime.

Member Data Documentation

◆ dim

int FallingBoxTransition::dim
private

Definition at line 46 of file ScreenTransition.h.

Referenced by Draw().

◆ mTime

float FallingBoxTransition::mTime
private

Definition at line 45 of file ScreenTransition.h.

Referenced by Draw(), Reset(), and Step().


The documentation for this class was generated from the following files: