Files
itgmania212121/stepmania/src/GameManager.h
T

72 lines
2.9 KiB
C++
Raw Normal View History

2004-07-25 17:07:32 +00:00
/* GameManager - Manages Games and Styles. */
2004-06-08 01:24:17 +00:00
#ifndef GAMEMANAGER_H
#define GAMEMANAGER_H
class Style;
2004-07-25 17:07:32 +00:00
class Game;
2005-08-01 05:14:29 +00:00
struct lua_State;
#include "GameConstantsAndTypes.h"
#include "GameInput.h"
2002-04-16 17:31:00 +00:00
struct StepsTypeInfo
{
const char *szName;
int iNumTracks;
bool bAllowAutogen; // allow this type to be autogen'd to other types
StepsTypeCategory m_StepsTypeCategory; // what is the most basic StyleType this is used with?
RString GetLocalizedString() const;
};
namespace GameManager
{
void GetStylesForGame( const Game* pGame, vector<const Style*>& aStylesAddTo, bool editor=false );
const Game *GetGameForStyle( const Style *pStyle );
void GetStepsTypesForGame( const Game* pGame, vector<StepsType>& aStepsTypeAddTo );
const Style *GetEditorStyleForStepsType( StepsType st );
void GetDemonstrationStylesForGame( const Game *pGame, vector<const Style*> &vpStylesOut );
const Style *GetHowToPlayStyleForGame( const Game* pGame );
void GetCompatibleStyles( const Game *pGame, int iNumPlayers, vector<const Style*> &vpStylesOut );
const Style *GetFirstCompatibleStyle( const Game *pGame, int iNumPlayers, StepsType st );
2006-09-21 04:42:45 +00:00
void GetEnabledGames( vector<const Game*>& aGamesOut );
const Game* GetDefaultGame();
bool IsGameEnabled( const Game* pGame );
int GetIndexFromGame( const Game* pGame );
const Game* GetGameFromIndex( int index );
const StepsTypeInfo &GetStepsTypeInfo( StepsType st );
StepsType StringToStepsType( RString sStepsType );
const Game* StringToGameType( RString sGameType );
2006-01-22 01:00:06 +00:00
const Style* GameAndStringToStyle( const Game* pGame, RString sStyle );
RString StyleToLocalizedString( const Style* s );
}
#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.
*/