Files
itgmania212121/stepmania/src/ScoreKeeperMAX2.h
T

58 lines
1.8 KiB
C++
Raw Normal View History

2002-11-03 07:17:03 +00:00
#ifndef SCOREKEEPER_MAX2_H
#define SCOREKEEPER_MAX2_H 1
/*
-----------------------------------------------------------------------------
Class: ScoreKeeperMAX2
Class to handle scorekeeping, MAX2-style.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
Glenn Maynard
-----------------------------------------------------------------------------
*/
#include "ScoreKeeper.h"
#include "NoteDataWithScoring.h"
2003-10-25 07:58:10 +00:00
#include "GameState.h"
2003-08-03 00:13:55 +00:00
class Steps;
2002-11-03 07:17:03 +00:00
class ScoreKeeperMAX2: public ScoreKeeper
{
int m_iScoreRemainder;
2003-06-23 22:05:24 +00:00
int m_iMaxPossiblePoints;
2002-11-03 07:17:03 +00:00
int m_iTapNotesHit; // number of notes judged so far, needed by scoring
2003-06-18 04:24:12 +00:00
int m_iNumTapsAndHolds;
int m_iMaxScoreSoFar; // for nonstop scoring
int m_iPointBonus; // the difference to award at the end
int m_iCurToastyCombo;
bool m_bIsLastSongInCourse;
2003-03-16 20:55:45 +00:00
2003-08-03 00:13:55 +00:00
const vector<Steps*>& apNotes;
2003-07-08 20:56:25 +00:00
void AddScore( TapNoteScore score );
2002-11-07 03:53:54 +00:00
/* Configuration: */
/* Score after each tap will be rounded to the nearest m_iRoundTo; 1 to do nothing. */
int m_iRoundTo;
int m_ComboBonusFactor[NUM_TAP_NOTE_SCORES];
2002-11-03 07:17:03 +00:00
public:
2003-10-25 22:00:58 +00:00
ScoreKeeperMAX2( const vector<Song*>& apSongs, const vector<Steps*>& apNotes, const vector<AttackArray> &asModifiers, PlayerNumber pn);
2003-03-26 23:08:05 +00:00
2003-07-21 19:07:10 +00:00
// before a song plays (called multiple times if course)
2003-10-04 04:30:00 +00:00
void OnNextSong( int iSongInCourseIndex, const Steps* pNotes, const NoteData* pNoteData );
2002-11-03 07:17:03 +00:00
void HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTapsInRow, int iNumAdditions );
2003-07-08 20:56:25 +00:00
void HandleHoldScore( HoldNoteScore holdScore, TapNoteScore tapScore );
2003-08-13 19:51:53 +00:00
private:
int TapNoteScoreToDancePoints( TapNoteScore tns );
int HoldNoteScoreToDancePoints( HoldNoteScore hns );
2003-08-13 19:51:53 +00:00
int GetPossibleDancePoints( const NoteData &preNoteData, const NoteData &postNoteData );
2002-11-03 07:17:03 +00:00
};
#endif