2002-05-19 01:59:48 +00:00
|
|
|
#pragma once
|
2002-01-16 10:01:32 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2002-05-19 01:59:48 +00:00
|
|
|
Class: ScoreDisplayRolling
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2002-01-17 07:41:01 +00:00
|
|
|
Desc: A graphic displayed in the ScoreDisplayRolling during Dancing.
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
2002-01-16 10:01:32 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "Song.h"
|
|
|
|
|
#include "ActorFrame.h"
|
|
|
|
|
#include "BitmapText.h"
|
|
|
|
|
|
|
|
|
|
|
2002-02-02 05:11:12 +00:00
|
|
|
const int NUM_SCORE_DIGITS = 9;
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
|
2002-02-02 05:11:12 +00:00
|
|
|
class ScoreDisplayRolling : public BitmapText
|
2002-01-16 10:01:32 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2002-01-17 07:41:01 +00:00
|
|
|
ScoreDisplayRolling();
|
2002-02-24 01:43:11 +00:00
|
|
|
|
2002-06-24 22:04:31 +00:00
|
|
|
void Init( PlayerNumber pn, PlayerOptions po, int iOriginalNumNotes, int iNotesMeter );
|
2002-06-14 22:25:22 +00:00
|
|
|
|
2002-06-27 17:49:10 +00:00
|
|
|
void SetScore( float fNewScore );
|
2002-06-14 22:25:22 +00:00
|
|
|
int GetScore();
|
2002-03-19 07:09:49 +00:00
|
|
|
void AddToScore( TapNoteScore score, int iCurCombo );
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2002-01-17 07:41:01 +00:00
|
|
|
virtual void Update( float fDeltaTime );
|
2002-02-02 05:11:12 +00:00
|
|
|
virtual void Draw();
|
2002-01-17 07:41:01 +00:00
|
|
|
|
2002-01-16 10:01:32 +00:00
|
|
|
protected:
|
2002-06-14 22:25:22 +00:00
|
|
|
PlayerNumber m_PlayerNumber;
|
|
|
|
|
PlayerOptions m_PlayerOptions;
|
2002-06-24 22:04:31 +00:00
|
|
|
int m_iTotalNotes;
|
2002-06-14 22:25:22 +00:00
|
|
|
int m_iNotesMeter;
|
|
|
|
|
|
2002-06-27 17:49:10 +00:00
|
|
|
float m_fScore;
|
2002-02-24 01:43:11 +00:00
|
|
|
|
2002-05-29 09:47:24 +00:00
|
|
|
float m_fTrailingScore;
|
|
|
|
|
float m_fScoreVelocity;
|
2002-01-16 10:01:32 +00:00
|
|
|
};
|