Files
itgmania212121/stepmania/src/GameManager.h
T

67 lines
2.5 KiB
C++
Raw Normal View History

2004-06-28 07:26:00 +00:00
/* GameManager - Manages GameDefs and Styles. */
2004-06-08 01:24:17 +00:00
#ifndef GAMEMANAGER_H
#define GAMEMANAGER_H
2002-04-16 17:31:00 +00:00
#include "GameDef.h"
2004-06-28 07:26:00 +00:00
#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 );
2004-06-28 07:26:00 +00:00
void GetStylesForGame( Game game, vector<const Style*>& aStylesAddTo, bool editor=false );
void GetAllStyles( vector<const Style*>& aStylesAddTo, bool editor=false );
2004-07-12 02:19:24 +00:00
void GetStepsTypesForGame( Game game, vector<StepsType>& aStepsTypeAddTo );
const Style* GetEditorStyleForStepsType( StepsType st );
2004-06-28 07:26:00 +00:00
const Style* GetDemonstrationStyleForGame( Game game );
const Style* GetHowToPlayStyleForGame( Game game );
2003-01-03 05:56:28 +00:00
void GetEnabledGames( vector<Game>& aGamesOut );
2003-09-25 02:16:37 +00:00
bool IsGameEnabled( Game game );
2004-07-12 02:19:24 +00:00
static int StepsTypeToNumTracks( StepsType st );
static StepsType StringToStepsType( CString sStepsType );
static CString StepsTypeToString( StepsType st );
static CString StepsTypeToThemedString( StepsType st );
2003-01-06 01:18:37 +00:00
static Game StringToGameType( CString sGameType );
2004-06-28 07:26:00 +00:00
const Style* GameAndStringToStyle( Game game, CString sStyle );
static CString StyleToThemedString( const Style* s );
};
2002-05-27 08:23:27 +00:00
extern GameManager* GAMEMAN; // global and accessable from anywhere in our program
#endif
2004-06-08 01:24:17 +00:00
/*
* (c) 2001-2004 Chris Danford, Glenn Maynard
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/