Files
itgmania212121/stepmania/src/GameManager.h
T

53 lines
1.9 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"
#include "Style.h"
#include "Game.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 );
const StyleDef* GetStyleDefForStyle( Style s );
2002-08-17 06:44:04 +00:00
void GetGameplayStylesForGame( Game game, CArray<Style,Style>& aStylesAddTo ); // do not include edit-specific
void GetNotesTypesForGame( Game game, CArray<NotesType,NotesType>& aNotesTypeAddTo ); // only look at edit-specific styles
Style GetEditStyleThatPlaysNotesType( NotesType nt );
// void GetGameNames( CStringArray &AddTo );
// bool DoesGameExist( CString sGameName );
2002-07-23 01:41:40 +00:00
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 GetTapTweenColors( const int col, CArray<D3DXCOLOR,D3DXCOLOR> &aTapTweenColorsAddTo ); // looks in GAMESTATE for the current Style
void GetHoldTweenColors( const int col, CArray<D3DXCOLOR,D3DXCOLOR> &aHoldTweenColorsAddTo ); // looks in GAMESTATE for the current Style
2002-07-23 01:41:40 +00:00
void GetEnabledGames( CArray<Game,Game>& aGamesOut );
2002-07-23 01:41:40 +00:00
protected:
void GetNoteSkinNames( Game game, CStringArray &AddTo );
2002-07-23 01:41:40 +00:00
CString m_sCurNoteSkin;
};
2002-05-27 08:23:27 +00:00
extern GameManager* GAMEMAN; // global and accessable from anywhere in our program