Files
itgmania212121/stepmania/src/PrefsManager.h
T

51 lines
1.4 KiB
C++
Raw Normal View History

2002-04-16 17:31:00 +00:00
#pragma once
2002-02-28 19:40:40 +00:00
/*
-----------------------------------------------------------------------------
Class: PrefsManager
2002-04-16 17:31:00 +00:00
Desc: Holds user-chosen preferences and saves it between sessions. This class
also has temporary holders for information that passed between windows - e.g.
ScoreSummary.
2002-02-28 19:40:40 +00:00
2002-04-16 17:31:00 +00:00
Copyright (c) 2001-2002 by the persons listed below. All rights reserved.
2002-02-28 19:40:40 +00:00
Chris Danford
-----------------------------------------------------------------------------
*/
2002-05-01 19:14:55 +00:00
#include "GameConstantsAndTypes.h"
2002-02-28 19:40:40 +00:00
const int NUM_PAD_TO_DEVICE_SLOTS = 3; // three device inputs may map to one pad input
class PrefsManager
{
public:
PrefsManager();
~PrefsManager();
ScoreSummary m_ScoreSummary[NUM_PLAYERS]; // for passing from Dancing to Results
SongSortOrder m_SongSortOrder; // used by MusicWheel and should be saved until the app exits
2002-04-28 20:42:32 +00:00
GameMode m_GameMode;
int m_iCurrentStage; // number of stages played +1
2002-04-16 17:31:00 +00:00
CString GetStageText();
2002-02-28 19:40:40 +00:00
2002-04-16 17:31:00 +00:00
DifficultyClass m_PreferredDifficultyClass[NUM_PLAYERS];
2002-02-28 19:40:40 +00:00
GameOptions m_GameOptions;
2002-04-28 20:42:32 +00:00
bool m_bWindowed;
GraphicProfile m_GraphicProfile;
GraphicProfileOptions* GetCustomGraphicProfileOptions();
GraphicProfileOptions* GetCurrentGraphicProfileOptions();
2002-02-28 19:40:40 +00:00
PlayerOptions m_PlayerOptions[NUM_PLAYERS];
SongOptions m_SongOptions;
void ReadPrefsFromDisk();
void SavePrefsToDisk();
protected:
};
extern PrefsManager* PREFS; // global and accessable from anywhere in our program