Files
itgmania212121/stepmania/src/GrayArrow.cpp
T
2002-04-01 02:21:01 +00:00

36 lines
729 B
C++

#include "stdafx.h"
/*
-----------------------------------------------------------------------------
Class: GrayArrow
Desc: A gray arrow that "receives" ColorArrows.
Copyright (c) 2001-2002 by the names listed below. All rights reserved.
Ben Nordstrom
Chris Danford
-----------------------------------------------------------------------------
*/
#include "GrayArrow.h"
#include "ThemeManager.h"
const float GRAY_ARROW_POP_UP_TIME = 0.3f;
GrayArrow::GrayArrow()
{
StopAnimating();
}
void GrayArrow::SetBeat( const float fSongBeat )
{
SetState( (int)( fmod(fSongBeat,1) * Sprite::GetNumStates() ) );
}
void GrayArrow::Step()
{
SetZoom( 0.50 );
BeginTweening( GRAY_ARROW_POP_UP_TIME );
SetTweenZoom( 1.0f );
}