Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SongOptions.h

Go to the documentation of this file.
00001 /* SongOptions - Options that apply to an entire song (not per-player). */ 00002 00003 #ifndef SONG_OPTIONS_H 00004 #define SONG_OPTIONS_H 00005 00006 struct SongOptions 00007 { 00008 enum LifeType { LIFE_BAR=0, LIFE_BATTERY, NUM_LIFE_TYPES }; 00009 LifeType m_LifeType; 00010 enum DrainType { DRAIN_NORMAL, DRAIN_NO_RECOVER, DRAIN_SUDDEN_DEATH }; 00011 DrainType m_DrainType; // only used with LifeBar 00012 int m_iBatteryLives; 00013 enum FailType { 00014 FAIL_IMMEDIATE=0, // fail when life touches 0 00015 FAIL_COMBO_OF_30_MISSES, // fail when 30 misses in a row, or on end of song if life touched 0 00016 FAIL_END_OF_SONG, // fail on end of song if life touched 0 00017 FAIL_OFF }; // never fail 00018 FailType m_FailType; 00019 float m_fMusicRate; 00020 bool m_bAssistTick, m_bAutoSync, m_bSaveScore; 00021 00022 SongOptions() { Init(); }; 00023 void Init(); 00024 CString GetString() const; 00025 void FromString( CString sOptions ); 00026 00027 bool operator==( const SongOptions &other ) const; 00028 bool operator!=( const SongOptions &other ) const { return !operator==(other); } 00029 }; 00030 00031 #endif 00032 00033 /* 00034 * (c) 2001-2004 Chris Danford, Glenn Maynard 00035 * All rights reserved. 00036 * 00037 * Permission is hereby granted, free of charge, to any person obtaining a 00038 * copy of this software and associated documentation files (the 00039 * "Software"), to deal in the Software without restriction, including 00040 * without limitation the rights to use, copy, modify, merge, publish, 00041 * distribute, and/or sell copies of the Software, and to permit persons to 00042 * whom the Software is furnished to do so, provided that the above 00043 * copyright notice(s) and this permission notice appear in all copies of 00044 * the Software and that both the above copyright notice(s) and this 00045 * permission notice appear in supporting documentation. 00046 * 00047 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00048 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00049 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00050 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00051 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00052 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00053 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00054 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00055 * PERFORMANCE OF THIS SOFTWARE. 00056 */

Generated on Thu Jan 27 20:57:33 2005 for StepMania by doxygen 1.3.7