Files
itgmania212121/stepmania/src/GrayArrow.cpp
T

39 lines
820 B
C++
Raw Normal View History

2001-12-01 23:46:09 +00:00
#include "stdafx.h"
2002-02-28 19:40:40 +00:00
/*
-----------------------------------------------------------------------------
Class: GrayArrow
2002-04-28 20:42:32 +00:00
Desc: A gray arrow that "receives" ColorNotes.
2002-02-28 19:40:40 +00:00
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-02-28 19:40:40 +00:00
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-16 17:31:00 +00:00
int iNewState = (int)( fmod(fSongBeat,1) * Sprite::GetNumStates() );
if( iNewState < 0 )
iNewState += Sprite::GetNumStates();
SetState( iNewState );
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 );
}