2002-11-16 08:07:38 +00:00
|
|
|
#ifndef STEPMANIA_H
|
|
|
|
|
#define STEPMANIA_H
|
2001-12-19 05:04:20 +00:00
|
|
|
|
2004-07-25 17:07:32 +00:00
|
|
|
class Game;
|
2003-10-02 03:06:20 +00:00
|
|
|
|
2004-07-20 15:50:01 +00:00
|
|
|
#ifdef _XBOX
|
|
|
|
|
#include "Xbox Compilance\stdafx.h"
|
|
|
|
|
void __cdecl main(char* argv[]);
|
|
|
|
|
#else
|
2003-07-22 07:47:27 +00:00
|
|
|
int SMmain(int argc, char* argv[]);
|
2004-07-20 15:50:01 +00:00
|
|
|
#endif
|
2002-03-30 20:00:13 +00:00
|
|
|
void ApplyGraphicOptions();
|
2004-05-06 09:06:24 +00:00
|
|
|
void HandleException( CString error );
|
2003-01-19 04:44:22 +00:00
|
|
|
void ExitGame();
|
2003-09-25 06:05:19 +00:00
|
|
|
void ResetGame( bool ReturnToFirstScreen=true );
|
2003-10-02 03:06:20 +00:00
|
|
|
void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame=true );
|
2003-10-02 01:39:23 +00:00
|
|
|
void SaveGamePrefsToDisk();
|
2004-07-25 17:07:32 +00:00
|
|
|
void ChangeCurrentGame( const Game* g );
|
2004-06-14 03:09:28 +00:00
|
|
|
void FocusChanged( bool bHasFocus );
|
2004-02-17 01:16:57 +00:00
|
|
|
|
|
|
|
|
// If successful, return filename of screenshot in sDir, else return ""
|
2004-02-22 05:04:11 +00:00
|
|
|
CString SaveScreenshot( CString sDir, bool bSaveCompressed, bool bMakeSignature, int iIndex = -1 );
|
2001-12-19 05:04:20 +00:00
|
|
|
|
2004-06-13 05:05:42 +00:00
|
|
|
void InsertCoin( int iNum = 1 );
|
|
|
|
|
void InsertCredit();
|
|
|
|
|
|
2004-01-17 05:21:24 +00:00
|
|
|
#if defined(_WINDOWS)
|
2003-11-14 17:17:36 +00:00
|
|
|
#include "windows.h"
|
2003-02-14 23:16:32 +00:00
|
|
|
extern HWND g_hWndMain;
|
2003-07-15 00:45:43 +00:00
|
|
|
#endif
|
2003-07-12 19:51:40 +00:00
|
|
|
|
2003-07-15 00:47:53 +00:00
|
|
|
extern int g_argc;
|
|
|
|
|
extern char **g_argv;
|
2004-04-30 07:24:29 +00:00
|
|
|
bool GetCommandlineArgument( const CString &option, CString *argument=NULL, int iIndex=0 );
|
2003-07-15 00:47:53 +00:00
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
#endif
|
2004-06-08 05:49:00 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* (c) 2001-2004 Chris Danford
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
* distribute, and/or sell copies of the Software, and to permit persons to
|
|
|
|
|
* whom the Software is furnished to do so, provided that the above
|
|
|
|
|
* copyright notice(s) and this permission notice appear in all copies of
|
|
|
|
|
* the Software and that both the above copyright notice(s) and this
|
|
|
|
|
* permission notice appear in supporting documentation.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
|
|
|
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
|
|
|
|
|
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
|
|
|
|
|
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
|
|
|
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
*/
|