Files
itgmania212121/stepmania/src/SongOptions.h
T

41 lines
1.1 KiB
C
Raw Normal View History

2002-07-27 19:29:51 +00:00
#pragma once
/*
-----------------------------------------------------------------------------
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;
enum AssistType { ASSIST_NONE=0, ASSIST_TICK };
AssistType m_AssistType;
float m_fMusicRate;
2002-08-01 13:42:56 +00:00
SongOptions() { Init(); };
void Init()
{
2002-07-28 20:28:37 +00:00
m_LifeType = LIFE_BAR;
m_DrainType = DRAIN_NORMAL;
2002-07-27 19:29:51 +00:00
m_iBatteryLives = 4;
m_FailType = FAIL_ARCADE;
m_AssistType = ASSIST_NONE;
m_fMusicRate = 1.0f;
};
2002-08-01 13:42:56 +00:00
CString GetString();
void FromString( CString sOptions );
2002-07-27 19:29:51 +00:00
};