2001-12-01 23:46:09 +00:00
|
|
|
#include "stdafx.h"
|
2002-02-28 19:40:40 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
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
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
2001-12-01 23:46:09 +00:00
|
|
|
|
|
|
|
|
#include "GrayArrow.h"
|
2002-01-16 10:01:32 +00:00
|
|
|
#include "ThemeManager.h"
|
2001-12-01 23:46:09 +00:00
|
|
|
|
|
|
|
|
const float GRAY_ARROW_POP_UP_TIME = 0.3f;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GrayArrow::GrayArrow()
|
|
|
|
|
{
|
|
|
|
|
StopAnimating();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GrayArrow::SetBeat( const float fSongBeat )
|
|
|
|
|
{
|
2002-04-01 02:04:43 +00:00
|
|
|
SetState( fmod(fSongBeat,1) * Sprite::GetNumStates() );
|
2001-12-01 23:46:09 +00:00
|
|
|
}
|
|
|
|
|
|
2002-02-24 01:43:11 +00:00
|
|
|
void GrayArrow::Step()
|
2001-12-01 23:46:09 +00:00
|
|
|
{
|
|
|
|
|
SetZoom( 0.50 );
|
|
|
|
|
BeginTweening( GRAY_ARROW_POP_UP_TIME );
|
|
|
|
|
SetTweenZoom( 1.0f );
|
|
|
|
|
}
|