Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
FlashTransition Class Reference

#include <GameWindowTransitions.h>

Inherits Transition.

Public Member Functions

 FlashTransition (void)
 
virtual ~FlashTransition (void)
 
virtual void init (GameWindow *win)
 
virtual void update (Int frame)
 
virtual void reverse (void)
 
virtual void draw (void)
 
virtual void skip (void)
 
- Public Member Functions inherited from Transition
 Transition (void)
 
virtual ~Transition (void)
 
Bool isFinished (void)
 
Int getFrameLength (void)
 

Protected Types

enum  {
  FLASHTRANSITION_START = 0 , FLASHTRANSITION_FADE_IN_1 = 1 , FLASHTRANSITION_FADE_IN_2 = 2 , FLASHTRANSITION_FADE_IN_3 = 3 ,
  FLASHTRANSITION_FADE_TO_BACKGROUND_1 = 4 , FLASHTRANSITION_FADE_TO_BACKGROUND_2 = 5 , FLASHTRANSITION_FADE_TO_BACKGROUND_3 = 6 , FLASHTRANSITION_FADE_TO_BACKGROUND_4 = 7 ,
  FLASHTRANSITION_END
}
 

Protected Attributes

ICoord2D m_pos
 
ICoord2D m_size
 
Int m_drawState
 
- Protected Attributes inherited from Transition
Int m_frameLength
 
Bool m_isFinished
 
Bool m_isForward
 
Bool m_isReversed
 
GameWindowm_win
 

Detailed Description

Definition at line 530 of file GameWindowTransitions.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
FLASHTRANSITION_START 
FLASHTRANSITION_FADE_IN_1 
FLASHTRANSITION_FADE_IN_2 
FLASHTRANSITION_FADE_IN_3 
FLASHTRANSITION_FADE_TO_BACKGROUND_1 
FLASHTRANSITION_FADE_TO_BACKGROUND_2 
FLASHTRANSITION_FADE_TO_BACKGROUND_3 
FLASHTRANSITION_FADE_TO_BACKGROUND_4 
FLASHTRANSITION_END 

Definition at line 544 of file GameWindowTransitions.h.

Constructor & Destructor Documentation

◆ FlashTransition()

FlashTransition::FlashTransition ( void )

Definition at line 88 of file GameWindowTransitionsStyles.cpp.

◆ ~FlashTransition()

FlashTransition::~FlashTransition ( void )
virtual

Definition at line 96 of file GameWindowTransitionsStyles.cpp.

Member Function Documentation

◆ draw()

void FlashTransition::draw ( void )
virtual

Implements Transition.

Definition at line 185 of file GameWindowTransitionsStyles.cpp.

◆ init()

void FlashTransition::init ( GameWindow * win)
virtual

Implements Transition.

Definition at line 101 of file GameWindowTransitionsStyles.cpp.

◆ reverse()

void FlashTransition::reverse ( void )
virtual

Implements Transition.

Definition at line 178 of file GameWindowTransitionsStyles.cpp.

◆ skip()

void FlashTransition::skip ( void )
virtual

Implements Transition.

Definition at line 234 of file GameWindowTransitionsStyles.cpp.

◆ update()

void FlashTransition::update ( Int frame)
virtual

Implements Transition.

Definition at line 116 of file GameWindowTransitionsStyles.cpp.

Member Data Documentation

◆ m_drawState

Int FlashTransition::m_drawState
protected

Definition at line 557 of file GameWindowTransitions.h.

◆ m_pos

ICoord2D FlashTransition::m_pos
protected

Definition at line 555 of file GameWindowTransitions.h.

◆ m_size

ICoord2D FlashTransition::m_size
protected

Definition at line 556 of file GameWindowTransitions.h.


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