OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

CDemo Class Reference
[Demos and special screens]

CDemo is the base class for every specific demo. More...

#include <Demo.h>

Inheritance diagram for CDemo:

CCreditsDemo CEuDemo CFighterStatsDemo CMainScreenDemo CStory1Demo CStory2Demo List of all members.

Public Member Functions

 CDemo ()
virtual ~CDemo ()
virtual int Run ()

Protected Member Functions

virtual int Advance (int a_iNumFrames, bool a_bFlip)
virtual int AdvanceFlyingChars (int a_iNumFrames)
virtual int AdvanceGame (int a_iNumFrames)
virtual void OnMenu ()

Protected Attributes

CFlyingCharsm_poFlyingChars
bool m_bAdvanceGame
SDL_Surface * m_poBackground

Detailed Description

CDemo is the base class for every specific demo.

The demos are played by the DoDemos() function in a predefined order.


Constructor & Destructor Documentation

CDemo::CDemo  ) 
 

CDemo::~CDemo  )  [virtual]
 


Member Function Documentation

int CDemo::Advance int  a_iNumFrames,
bool  a_bFlip
[protected, virtual]
 

Reimplemented in CMainScreenDemo, and CFighterStatsDemo.

int CDemo::AdvanceFlyingChars int  a_iNumFrames  )  [protected, virtual]
 

int CDemo::AdvanceGame int  a_iNumFrames  )  [protected, virtual]
 

void CDemo::OnMenu  )  [protected, virtual]
 

int CDemo::Run  )  [virtual]
 


Member Data Documentation

bool CDemo::m_bAdvanceGame [protected]
 

SDL_Surface* CDemo::m_poBackground [protected]
 

CFlyingChars* CDemo::m_poFlyingChars [protected]
 


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