Files
itgmania212121/stepmania/src/GameManager.h
T

48 lines
1.3 KiB
C++
Raw Normal View History

#ifndef GAMEMANAGER_H
#define GAMEMANAGER_H
/*
-----------------------------------------------------------------------------
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"
class IniFile;
2002-04-16 17:31:00 +00:00
class GameManager
{
public:
GameManager();
~GameManager();
2002-07-23 01:41:40 +00:00
GameDef* GetGameDefForGame( Game g );
const StyleDef* GetStyleDefForStyle( Style s );
2003-01-30 07:18:33 +00:00
void GetStylesForGame( Game game, vector<Style>& aStylesAddTo, bool editor=false );
void GetNotesTypesForGame( Game game, vector<NotesType>& aNotesTypeAddTo );
Style GetEditorStyleForNotesType( NotesType nt );
2003-01-03 05:56:28 +00:00
void GetEnabledGames( vector<Game>& aGamesOut );
2002-08-23 00:19:31 +00:00
static int NotesTypeToNumTracks( NotesType nt );
static NotesType StringToNotesType( CString sNotesType );
static CString NotesTypeToString( NotesType nt );
2003-01-06 01:18:37 +00:00
static Game StringToGameType( CString sGameType );
2003-03-03 10:03:02 +00:00
Style GameAndStringToStyle( Game game, CString sStyle );
2002-08-23 00:19:31 +00:00
2002-07-23 01:41:40 +00:00
protected:
};
2002-05-27 08:23:27 +00:00
extern GameManager* GAMEMAN; // global and accessable from anywhere in our program
#endif