Files
itgmania212121/stepmania/src/SongOptions.h
T

38 lines
1.1 KiB
C
Raw Normal View History

#ifndef SONGOPTIONS_H
#define SONGOPTIONS_H
2002-07-27 19:29:51 +00:00
/*
-----------------------------------------------------------------------------
Class: SongOptions
2002-07-27 19:29:51 +00:00
Desc: Per-song options that are not saved between sessions. These are options
that should probably be disabled in a coin-operated machine.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
struct SongOptions
{
2002-08-02 09:31:06 +00:00
enum LifeType { LIFE_BAR=0, LIFE_BATTERY, NUM_LIFE_TYPES };
2002-07-27 19:29:51 +00:00
LifeType m_LifeType;
enum DrainType { DRAIN_NORMAL, DRAIN_NO_RECOVER, DRAIN_SUDDEN_DEATH };
DrainType m_DrainType; // only used with LifeBar
int m_iBatteryLives;
enum FailType { FAIL_ARCADE=0, FAIL_END_OF_SONG, FAIL_OFF };
FailType m_FailType;
2002-07-27 19:29:51 +00:00
float m_fMusicRate;
2003-09-04 21:24:50 +00:00
bool m_bAssistTick, m_bAutoSync, m_bSaveScore;
2002-07-27 19:29:51 +00:00
2002-08-01 13:42:56 +00:00
SongOptions() { Init(); };
2003-08-13 18:30:46 +00:00
void Init();
2003-09-29 05:01:41 +00:00
CString GetString() const;
2002-08-01 13:42:56 +00:00
void FromString( CString sOptions );
2004-01-11 04:33:21 +00:00
2004-01-18 07:44:39 +00:00
bool operator==( const SongOptions &other ) const;
bool operator!=( const SongOptions &other ) const { return !operator==(other); }
2002-07-27 19:29:51 +00:00
};
#endif