smsvn -> ssc-hg glue: rearrange directory structure
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
/* StageStats - Contains statistics for one stage of play - either one song, or a whole course. */
|
||||
|
||||
#ifndef StageStats_H
|
||||
#define StageStats_H
|
||||
|
||||
#include "PlayerNumber.h"
|
||||
#include "PlayerStageStats.h"
|
||||
class Song;
|
||||
class Style;
|
||||
struct lua_State;
|
||||
|
||||
|
||||
class StageStats
|
||||
{
|
||||
public:
|
||||
StageStats();
|
||||
void Init();
|
||||
|
||||
void AssertValid( PlayerNumber pn ) const;
|
||||
void AssertValid( MultiPlayer mp ) const;
|
||||
|
||||
void AddStats( const StageStats& other ); // accumulate
|
||||
|
||||
bool OnePassed() const;
|
||||
bool AllFailed() const;
|
||||
|
||||
int GetAverageMeter( PlayerNumber pn ) const;
|
||||
|
||||
Stage m_Stage;
|
||||
int m_iStageIndex;
|
||||
PlayMode m_playMode;
|
||||
const Style* m_pStyle;
|
||||
vector<Song*> m_vpPlayedSongs;
|
||||
vector<Song*> m_vpPossibleSongs;
|
||||
|
||||
EarnedExtraStage m_EarnedExtraStage;
|
||||
bool m_bGaveUp; // exited gameplay by giving up
|
||||
bool m_bUsedAutoplay; // used autoplay at any point during gameplay
|
||||
|
||||
// TODO: These are updated in ScreenGameplay::Update based on fDelta.
|
||||
// They should be made more accurate.
|
||||
float m_fGameplaySeconds; // how many seconds before gameplay ended. Updated by Gameplay, not scaled by music rate.
|
||||
float m_fStepsSeconds; // this is <= fGameplaySeconds unless the song has steps past the end
|
||||
float m_fMusicRate;
|
||||
|
||||
// Total number of seconds between first beat and last beat for every song.
|
||||
float GetTotalPossibleStepsSeconds() const;
|
||||
|
||||
PlayerStageStats m_player[NUM_PLAYERS];
|
||||
PlayerStageStats m_multiPlayer[NUM_MultiPlayer];
|
||||
|
||||
void FinalizeScores( bool bSummary ); // finalize by filling in the HighScore structures for all players
|
||||
bool PlayerHasHighScore( PlayerNumber pn ) const;
|
||||
int GetMinimumMissCombo() const;
|
||||
|
||||
// Lua
|
||||
void PushSelf( lua_State *L );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* (c) 2001-2004 Chris Danford, Glenn Maynard
|
||||
* 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.
|
||||
*/
|
||||
Reference in New Issue
Block a user