00001 #ifndef DIFFICULTY_H 00002 #define DIFFICULTY_H 00003 00004 #include "EnumHelper.h" 00005 00006 // 00007 // Player number stuff 00008 // 00009 enum Difficulty 00010 { 00011 DIFFICULTY_BEGINNER, // corresponds to DDREX Beginner 00012 DIFFICULTY_EASY, // corresponds to Basic, Easy 00013 DIFFICULTY_MEDIUM, // corresponds to Trick, Another, Standard, Normal 00014 DIFFICULTY_HARD, // corresponds to Maniac, SSR, Heavy, Crazy 00015 DIFFICULTY_CHALLENGE, // corresponds to 5th SMANIAC, MAX2 Challenge, EX Challenge 00016 DIFFICULTY_EDIT, 00017 NUM_DIFFICULTIES, 00018 DIFFICULTY_INVALID 00019 }; 00020 #define FOREACH_Difficulty( dc ) FOREACH_ENUM( Difficulty, NUM_DIFFICULTIES, dc ) 00021 const CString& DifficultyToString( Difficulty dc ); 00022 CString DifficultyToThemedString( Difficulty dc ); 00023 Difficulty StringToDifficulty( const CString& sDC ); 00024 00025 00026 typedef Difficulty CourseDifficulty; 00027 #define NUM_COURSE_DIFFICULTIES NUM_DIFFICULTIES 00028 #define FOREACH_CourseDifficulty FOREACH_Difficulty 00029 #define FOREACH_ShownCourseDifficulty( cd ) for( Difficulty cd=GetNextShownCourseDifficulty((CourseDifficulty)-1); cd!=DIFFICULTY_INVALID; cd=GetNextShownCourseDifficulty(cd) ) 00030 00031 const CString& CourseDifficultyToString( Difficulty dc ); 00032 CString CourseDifficultyToThemedString( Difficulty dc ); 00033 Difficulty StringToCourseDifficulty( const CString& sDC ); 00034 00035 Difficulty GetNextShownCourseDifficulty( Difficulty pn ); 00036 00037 #endif 00038 00039 /* 00040 * (c) 2001-2004 Chris Danford 00041 * All rights reserved. 00042 * 00043 * Permission is hereby granted, free of charge, to any person obtaining a 00044 * copy of this software and associated documentation files (the 00045 * "Software"), to deal in the Software without restriction, including 00046 * without limitation the rights to use, copy, modify, merge, publish, 00047 * distribute, and/or sell copies of the Software, and to permit persons to 00048 * whom the Software is furnished to do so, provided that the above 00049 * copyright notice(s) and this permission notice appear in all copies of 00050 * the Software and that both the above copyright notice(s) and this 00051 * permission notice appear in supporting documentation. 00052 * 00053 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00054 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00055 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00056 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00057 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00058 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00059 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00060 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00061 * PERFORMANCE OF THIS SOFTWARE. 00062 */