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

NotesLoaderDWI.h

Go to the documentation of this file.
00001 /* DWILoader - reads a Song from a .DWI file. */ 00002 00003 #ifndef NOTES_LOADER_DWI_H 00004 #define NOTES_LOADER_DWI_H 00005 00006 #include "GameInput.h" 00007 #include "NotesLoader.h" 00008 00009 class Song; 00010 class Steps; 00011 00012 class DWILoader: public NotesLoader 00013 { 00014 void DWIcharToNote( char c, GameController i, int &note1Out, int &note2Out ); 00015 void DWIcharToNoteCol( char c, GameController i, int &col1Out, int &col2Out ); 00016 00017 bool LoadFromDWITokens( 00018 CString sMode, CString sDescription, CString sNumFeet, CString sStepData1, 00019 CString sStepData2, 00020 Steps &out ); 00021 00022 bool LoadFromDWIFile( CString sPath, Song &out ); 00023 00024 static float ParseBrokenDWITimestamp(const CString &arg1, const CString &arg2, const CString &arg3); 00025 static bool Is192( const CString &str, int pos ); 00026 CString m_sLoadingFile; 00027 00028 public: 00029 void GetApplicableFiles( CString sPath, CStringArray &out ); 00030 bool Loadable( CString sPath ); 00031 bool LoadFromDir( CString sPath, Song &out ); 00032 }; 00033 00034 #endif 00035 00036 /* 00037 * (c) 2001-2004 Chris Danford, Glenn Maynard 00038 * All rights reserved. 00039 * 00040 * Permission is hereby granted, free of charge, to any person obtaining a 00041 * copy of this software and associated documentation files (the 00042 * "Software"), to deal in the Software without restriction, including 00043 * without limitation the rights to use, copy, modify, merge, publish, 00044 * distribute, and/or sell copies of the Software, and to permit persons to 00045 * whom the Software is furnished to do so, provided that the above 00046 * copyright notice(s) and this permission notice appear in all copies of 00047 * the Software and that both the above copyright notice(s) and this 00048 * permission notice appear in supporting documentation. 00049 * 00050 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00051 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00052 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00053 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00054 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00055 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00056 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00057 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00058 * PERFORMANCE OF THIS SOFTWARE. 00059 */

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