Files
itgmania212121/stepmania/src/ScoreKeeper.h
T
Chris Danford 189b37b517 Change Nonstop scoring to the DDREX way
Clean up ScreenGameplay by having a Song and Notes Queue (rather than different logic based on the PlayMode)
2003-03-26 23:08:05 +00:00

55 lines
1.7 KiB
C++

#ifndef SCOREKEEPER_H
#define SCOREKEEPER_H 1
/*
-----------------------------------------------------------------------------
Class: ScoreKeeper
Abstract class to handle scorekeeping, stat-taking, etc.
Stat handling is in here because that can differ between games, too; for
example, some games count double taps as a single note in scoring and
some count per-tap.
Results are injected directly into GameState.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
Glenn Maynard
-----------------------------------------------------------------------------
*/
#include "Actor.h"
#include "PlayerNumber.h"
#include "GameConstantsAndTypes.h" // for TapNoteScore and HoldNoteScore
class NoteData;
class Inventory;
class Notes;
class ScoreKeeper: public Actor
{
protected:
PlayerNumber m_PlayerNumber;
/* Common toggles that this class handles directly: */
/* If true, doubles count as 2+ in stat counts; if false, doubles count as
* only one. */ /* (not yet) */
// bool Stats_DoublesCount;
public:
ScoreKeeper(const vector<Notes*>& apNotes, PlayerNumber pn) { m_PlayerNumber=pn; }
virtual void DrawPrimitives() { }
virtual void OnNextSong( int iSongInCourseIndex, Notes* pNotes ) = 0; // before a song plays (called multiple times if course)
virtual void HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTapsInRow, Inventory* pInventory ) = 0;
virtual void HandleHoldScore( HoldNoteScore holdScore, TapNoteScore tapScore ) = 0;
virtual int TapNoteScoreToDancePoints( TapNoteScore tns ) = 0;
virtual int HoldNoteScoreToDancePoints( HoldNoteScore hns ) = 0;
virtual int GetPossibleDancePoints( const NoteData* pNoteData ) = 0;
};
#endif