Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MusicDirector Class Reference

#include <MusicDirector.h>

List of all members.

Public Types

enum  MODES {
  NONE, MENU, INTRO, BRIEFING,
  DEBRIEFING, PROMOTION, VICTORY, DEFEAT,
  CREDITS, FLIGHT, COMBAT, LAUNCH,
  RECOVERY, SHUTDOWN
}
enum  TRANSITIONS {
  CUT, FADE_OUT, FADE_IN, FADE_BOTH,
  CROSS_FADE
}

Public Member Functions

 MusicDirector ()
 ~MusicDirector ()
void ExecFrame ()
void ScanTracks ()
int CheckMode (int mode)
int GetMode () const

Static Public Member Functions

static void Initialize ()
static void Close ()
static MusicDirectorGetInstance ()
static void SetMode (int mode)
static const char * GetModeName (int mode)
static bool IsNoMusic ()

Protected Member Functions

void StartThread ()
void StopThread ()
void GetNextTrack (int index)
void ShuffleTracks ()

Protected Attributes

int mode
int transition
MusicTracktrack
MusicTracknext_track
List< Textmenu_tracks
List< Textintro_tracks
List< Textbrief_tracks
List< Textdebrief_tracks
List< Textpromote_tracks
List< Textflight_tracks
List< Textcombat_tracks
List< Textlaunch_tracks
List< Textrecovery_tracks
List< Textvictory_tracks
List< Textdefeat_tracks
List< Textcredit_tracks
bool no_music
HANDLE hproc
ThreadSync sync

Detailed Description

Definition at line 30 of file MusicDirector.h.


Member Enumeration Documentation

Enumerator:
NONE 
MENU 
INTRO 
BRIEFING 
DEBRIEFING 
PROMOTION 
VICTORY 
DEFEAT 
CREDITS 
FLIGHT 
COMBAT 
LAUNCH 
RECOVERY 
SHUTDOWN 

Definition at line 33 of file MusicDirector.h.

Enumerator:
CUT 
FADE_OUT 
FADE_IN 
FADE_BOTH 
CROSS_FADE 

Definition at line 58 of file MusicDirector.h.


Constructor & Destructor Documentation

MusicDirector::MusicDirector ( )

Definition at line 30 of file MusicDirector.cpp.

MusicDirector::~MusicDirector ( )

Definition at line 42 of file MusicDirector.cpp.


Member Function Documentation

int MusicDirector::CheckMode ( int  mode)

Definition at line 321 of file MusicDirector.cpp.

void MusicDirector::Close ( )
static

Definition at line 76 of file MusicDirector.cpp.

void MusicDirector::ExecFrame ( )

Definition at line 91 of file MusicDirector.cpp.

MusicDirector * MusicDirector::GetInstance ( )
static

Definition at line 83 of file MusicDirector.cpp.

int MusicDirector::GetMode ( ) const
inline

Definition at line 74 of file MusicDirector.h.

const char * MusicDirector::GetModeName ( int  mode)
static

Definition at line 248 of file MusicDirector.cpp.

void MusicDirector::GetNextTrack ( int  index)
protected

Definition at line 376 of file MusicDirector.cpp.

void MusicDirector::Initialize ( )
static

Definition at line 69 of file MusicDirector.cpp.

bool MusicDirector::IsNoMusic ( )
static

Definition at line 365 of file MusicDirector.cpp.

void MusicDirector::ScanTracks ( )

Definition at line 147 of file MusicDirector.cpp.

void MusicDirector::SetMode ( int  mode)
static

Definition at line 273 of file MusicDirector.cpp.

void MusicDirector::ShuffleTracks ( )
protected

Definition at line 427 of file MusicDirector.cpp.

void MusicDirector::StartThread ( )
protected

Definition at line 462 of file MusicDirector.cpp.

void MusicDirector::StopThread ( )
protected

Definition at line 495 of file MusicDirector.cpp.


Member Data Documentation

List<Text> MusicDirector::brief_tracks
protected

Definition at line 97 of file MusicDirector.h.

List<Text> MusicDirector::combat_tracks
protected

Definition at line 101 of file MusicDirector.h.

List<Text> MusicDirector::credit_tracks
protected

Definition at line 106 of file MusicDirector.h.

List<Text> MusicDirector::debrief_tracks
protected

Definition at line 98 of file MusicDirector.h.

List<Text> MusicDirector::defeat_tracks
protected

Definition at line 105 of file MusicDirector.h.

List<Text> MusicDirector::flight_tracks
protected

Definition at line 100 of file MusicDirector.h.

HANDLE MusicDirector::hproc
protected

Definition at line 110 of file MusicDirector.h.

List<Text> MusicDirector::intro_tracks
protected

Definition at line 96 of file MusicDirector.h.

List<Text> MusicDirector::launch_tracks
protected

Definition at line 102 of file MusicDirector.h.

List<Text> MusicDirector::menu_tracks
protected

Definition at line 95 of file MusicDirector.h.

int MusicDirector::mode
protected

Definition at line 89 of file MusicDirector.h.

MusicTrack* MusicDirector::next_track
protected

Definition at line 93 of file MusicDirector.h.

bool MusicDirector::no_music
protected

Definition at line 108 of file MusicDirector.h.

List<Text> MusicDirector::promote_tracks
protected

Definition at line 99 of file MusicDirector.h.

List<Text> MusicDirector::recovery_tracks
protected

Definition at line 103 of file MusicDirector.h.

ThreadSync MusicDirector::sync
protected

Definition at line 111 of file MusicDirector.h.

MusicTrack* MusicDirector::track
protected

Definition at line 92 of file MusicDirector.h.

int MusicDirector::transition
protected

Definition at line 90 of file MusicDirector.h.

List<Text> MusicDirector::victory_tracks
protected

Definition at line 104 of file MusicDirector.h.


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