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

GameCommand.h

Go to the documentation of this file.
00001 /* GameCommand */ 00002 00003 #ifndef GameCommand_H 00004 #define GameCommand_H 00005 00006 #include "GameConstantsAndTypes.h" 00007 #include "PlayerNumber.h" 00008 #include "Difficulty.h" 00009 #include <map> 00010 00011 class Song; 00012 class Steps; 00013 class Course; 00014 class Trail; 00015 class Character; 00016 class Style; 00017 class Game; 00018 class Commands; 00019 00020 struct GameCommand // used in SelectMode 00021 { 00022 GameCommand() { Init(); } 00023 void Init(); 00024 00025 void Load( int iIndex, const Commands& acs ); 00026 00027 void ApplyToAllPlayers() const; 00028 void Apply( PlayerNumber pn ) const; 00029 private: 00030 void Apply( const vector<PlayerNumber> &vpns ) const; 00031 public: 00032 00033 bool DescribesCurrentMode( PlayerNumber pn ) const; 00034 bool DescribesCurrentModeForAllPlayers() const; 00035 bool IsPlayable( CString *why = NULL ) const; 00036 bool IsZero() const; 00037 00038 CString m_sName; // display name 00039 bool m_bInvalid; 00040 CString m_sInvalidReason; 00041 int m_iIndex; 00042 const Game* m_pGame; 00043 const Style* m_pStyle; 00044 PlayMode m_pm; 00045 Difficulty m_dc; 00046 CourseDifficulty m_CourseDifficulty; 00047 CString m_sAnnouncer; 00048 CString m_sModifiers; 00049 CString m_sScreen; 00050 Song* m_pSong; 00051 Steps* m_pSteps; 00052 Course* m_pCourse; 00053 Trail* m_pTrail; 00054 Character* m_pCharacter; 00055 std::map<CString,CString> m_SetEnv; 00056 CString m_sSongGroup; 00057 SortOrder m_SortOrder; 00058 int m_iUnlockIndex; // -1 for no unlock 00059 CString m_sSoundPath; // "" for no sound 00060 vector<CString> m_vsScreensToPrepare; 00061 bool m_bDeletePreparedScreens; 00062 00063 bool m_bClearBookkeepingData; 00064 bool m_bClearMachineStats; 00065 bool m_bTransferStatsFromMachine; 00066 bool m_bTransferStatsToMachine; 00067 bool m_bInsertCredit; 00068 bool m_bResetToFactoryDefaults; 00069 bool m_bStopMusic; 00070 bool m_bApplyDefaultOptions; 00071 }; 00072 00073 #endif 00074 00075 /* 00076 * (c) 2001-2004 Chris Danford, Glenn Maynard 00077 * All rights reserved. 00078 * 00079 * Permission is hereby granted, free of charge, to any person obtaining a 00080 * copy of this software and associated documentation files (the 00081 * "Software"), to deal in the Software without restriction, including 00082 * without limitation the rights to use, copy, modify, merge, publish, 00083 * distribute, and/or sell copies of the Software, and to permit persons to 00084 * whom the Software is furnished to do so, provided that the above 00085 * copyright notice(s) and this permission notice appear in all copies of 00086 * the Software and that both the above copyright notice(s) and this 00087 * permission notice appear in supporting documentation. 00088 * 00089 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00090 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00091 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00092 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00093 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00094 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00095 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00096 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00097 * PERFORMANCE OF THIS SOFTWARE. 00098 */

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