Files
itgmania212121/stepmania/src/GameManager.h
T

48 lines
1.6 KiB
C++
Raw Normal View History

2002-04-16 17:31:00 +00:00
#pragma once
/*
-----------------------------------------------------------------------------
Class: GameManager
2002-04-16 17:31:00 +00:00
Desc: Manages GameDefs (which define different games, like "dance" and "pump")
and StyleDefs (which define different games, like "single" and "couple")
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
2002-04-16 17:31:00 +00:00
#include "GameDef.h"
#include "StyleDef.h"
2002-04-16 17:31:00 +00:00
class GameManager
{
public:
GameManager();
2002-07-23 01:41:40 +00:00
GameDef* GetGameDefForGame( Game g );
StyleDef* GetStyleDefForStyle( Style s );
2002-07-23 01:41:40 +00:00
Style GetStyleThatPlaysNotesType( NotesType nt );
2002-05-27 08:23:27 +00:00
void GetGameNames( CStringArray &AddTo );
2002-07-23 01:41:40 +00:00
bool DoesGameExist( CString sGameName );
void GetNoteSkinNames( CStringArray &AddTo ); // looks up current Game in GAMESTATE
bool DoesNoteSkinExist( CString sSkinName ); // looks up current Game in GAMESTATE
void SwitchNoteSkin( CString sNewNoteSkin ); // looks up current Game in GAMESTATE
CString GetCurNoteSkin() { return m_sCurNoteSkin; };
CString GetPathTo( const int col, const SkinElement gbg ); // looks in GAMESTATE for the current Style
void GetTweenColors( const int col, CArray<D3DXCOLOR,D3DXCOLOR> &aTweenColorsAddTo ); // looks in GAMESTATE for the current Style
protected:
CString GetPathTo( Game g, CString sSkinName, CString sButtonName, const SkinElement gbg );
void GetTweenColors( Game g, CString sSkinName, CString sButtonName, CArray<D3DXCOLOR,D3DXCOLOR> &aTweenColorsAddTo );
CString m_sCurNoteSkin;
};
2002-05-27 08:23:27 +00:00
extern GameManager* GAMEMAN; // global and accessable from anywhere in our program