Files
itgmania212121/stepmania/src/GhostArrowBright.cpp
T

51 lines
1.3 KiB
C++
Raw Normal View History

2001-12-28 10:15:59 +00:00
#include "stdafx.h"
2002-07-28 20:28:37 +00:00
/*
-----------------------------------------------------------------------------
Class: GhostArrowBright
Desc: See header.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Ben Nordstrom
Chris Danford
-----------------------------------------------------------------------------
*/
2001-12-28 10:15:59 +00:00
#include "GhostArrowBright.h"
2002-07-23 01:41:40 +00:00
#include "PrefsManager.h"
2001-12-28 10:15:59 +00:00
const float GRAY_ARROW_TWEEN_TIME = 0.5f;
GhostArrowBright::GhostArrowBright()
{
2002-04-01 02:04:43 +00:00
// Load( THEME->GetPathTo(GRAPHIC_BRIGHT_GHOST_ARROW) );
2001-12-28 10:15:59 +00:00
SetDiffuseColor( D3DXCOLOR(1,1,1,0) );
TurnShadowOff();
}
2002-07-28 20:28:37 +00:00
void GhostArrowBright::Update( float fDeltaTime )
2001-12-28 10:15:59 +00:00
{
2002-07-28 20:28:37 +00:00
Sprite::Update( fDeltaTime );
2001-12-28 10:15:59 +00:00
}
void GhostArrowBright::Step( TapNoteScore score )
2001-12-28 10:15:59 +00:00
{
switch( score )
{
2002-07-11 19:02:26 +00:00
case TNS_PERFECT: SetDiffuseColor( D3DXCOLOR(1.0f,1.0f,0.3f,1) ); break; // yellow
case TNS_GREAT: SetDiffuseColor( D3DXCOLOR(0.0f,1.0f,0.4f,1) ); break; // green
case TNS_GOOD: SetDiffuseColor( D3DXCOLOR(0.3f,0.8f,1.0f,1) ); break;
case TNS_BOO: SetDiffuseColor( D3DXCOLOR(0.8f,0.0f,0.6f,1) ); break;
case TNS_MISS: ASSERT( false ); break;
2001-12-28 10:15:59 +00:00
}
SetState( 0 );
2002-06-14 22:25:22 +00:00
SetZoom( 1.0f );
BeginTweening( 0.25f );
SetTweenZoom( 1.5f );
2001-12-28 10:15:59 +00:00
D3DXCOLOR colorTween = GetDiffuseColor();
colorTween.a = 0;
SetTweenDiffuseColor( colorTween );
}