#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 Steps; 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 Update( float fDelta ) { } /* Note that pNoteData will include any transformations due to modifiers. */ virtual void OnNextSong( int iSongInCourseIndex, const Steps* pNotes, const NoteData* pNoteData ) = 0; // before a song plays (called multiple times if course) virtual void HandleTapScore( TapNoteScore score ) = 0; virtual void HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTapsInRow ) = 0; virtual void HandleHoldScore( HoldNoteScore holdScore, TapNoteScore tapScore ) = 0; }; #endif