Files
itgmania212121/stepmania/src/ScoreDisplayOni.cpp
T

60 lines
1.2 KiB
C++
Raw Normal View History

2002-07-23 01:41:40 +00:00
#include "stdafx.h"
/*
-----------------------------------------------------------------------------
2002-09-05 03:45:07 +00:00
Class: ScoreDisplayOni
2002-07-23 01:41:40 +00:00
Desc: A graphic displayed in the ScoreDisplayOni during Dancing.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "ScoreDisplayOni.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "PrefsManager.h"
#include "RageLog.h"
#include "GameState.h"
const float SCORE_TWEEN_TIME = 0.5f;
ScoreDisplayOni::ScoreDisplayOni()
{
LOG->Trace( "ScoreDisplayOni::ScoreDisplayOni()" );
2002-07-23 01:41:40 +00:00
// init the text
2002-09-22 20:34:11 +00:00
BitmapText::LoadFromNumbers( THEME->GetPathTo("Numbers","gameplay score numbers") );
2002-07-23 01:41:40 +00:00
TurnShadowOff();
}
2002-07-28 20:28:37 +00:00
void ScoreDisplayOni::Init( PlayerNumber pn )
2002-07-23 01:41:40 +00:00
{
m_PlayerNumber = pn;
}
void ScoreDisplayOni::SetScore( float fNewScore )
{
}
void ScoreDisplayOni::Update( float fDeltaTime )
{
BitmapText::Update( fDeltaTime );
}
void ScoreDisplayOni::Draw()
{
2002-08-01 13:42:56 +00:00
float fSecsIntoPlay;
if( GAMESTATE->IsPlayerEnabled(m_PlayerNumber) )
fSecsIntoPlay = GAMESTATE->GetPlayerSurviveTime(m_PlayerNumber);
else
fSecsIntoPlay = 0;
2002-07-28 20:28:37 +00:00
2002-08-01 13:42:56 +00:00
SetText( SecondsToTime(fSecsIntoPlay) );
2002-07-23 01:41:40 +00:00
BitmapText::Draw();
}