Files
itgmania212121/stepmania/src/ScoreKeeper.h
T
Chris Danford 9dbbb7949e ScoreKeeperMAX2:
- Jumps count as 2 toward combo, but 1 toward judgement totals
- Only Perfect or better increments combo in courses
2003-03-16 20:55:45 +00:00

52 lines
1.5 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 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(PlayerNumber pn) { m_PlayerNumber=pn; }
virtual void DrawPrimitives() { }
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