Files
itgmania212121/stepmania/src/GrayArrow.cpp
T
Chris Danford 78f3e80118 2.50 checkin
2002-04-16 17:31:00 +00:00

39 lines
819 B
C++

#include "stdafx.h"
/*
-----------------------------------------------------------------------------
Class: GrayArrow
Desc: A gray arrow that "receives" ColorArrows.
Copyright (c) 2001-2002 by the persons 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 )
{
int iNewState = (int)( fmod(fSongBeat,1) * Sprite::GetNumStates() );
if( iNewState < 0 )
iNewState += Sprite::GetNumStates();
SetState( iNewState );
}
void GrayArrow::Step()
{
SetZoom( 0.50 );
BeginTweening( GRAY_ARROW_POP_UP_TIME );
SetTweenZoom( 1.0f );
}