#include "global.h" /* ----------------------------------------------------------------------------- Class: GhostArrow Desc: See header. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Ben Nordstrom Chris Danford ----------------------------------------------------------------------------- */ #include "GhostArrow.h" #include "PrefsManager.h" #include "ThemeManager.h" CachedThemeMetricF GA_SHOW_SECONDS ("GhostArrow","ShowSeconds"); CachedThemeMetricF GA_ZOOM_START ("GhostArrow","ZoomStart"); CachedThemeMetricF GA_ZOOM_END ("GhostArrow","ZoomEnd"); CachedThemeMetricC GA_COLOR_MARVELOUS ("GhostArrow","ColorMarvelous"); CachedThemeMetricC GA_COLOR_PERFECT ("GhostArrow","ColorPerfect"); CachedThemeMetricC GA_COLOR_GREAT ("GhostArrow","ColorGreat"); CachedThemeMetricC GA_COLOR_GOOD ("GhostArrow","ColorGood"); CachedThemeMetricC GA_COLOR_BOO ("GhostArrow","ColorBoo"); GhostArrow::GhostArrow() { GA_SHOW_SECONDS.Refresh(); GA_ZOOM_START.Refresh(); GA_ZOOM_END.Refresh(); GA_COLOR_MARVELOUS.Refresh(); GA_COLOR_PERFECT.Refresh(); GA_COLOR_GREAT.Refresh(); GA_COLOR_GOOD.Refresh(); GA_COLOR_BOO.Refresh(); SetDiffuse( RageColor(1,1,1,0) ); } void GhostArrow::Update( float fDeltaTime ) { Sprite::Update( fDeltaTime ); } void GhostArrow::Step( TapNoteScore score ) { // HACK: set the length of each frame so the animation plays in exactly 1 pop up time. // We can't do this in the constructor because the image hasn't been loaded yet for( int i=0; i