Files
itgmania212121/stepmania/src/GrooveRadar.h
T

60 lines
1.4 KiB
C++
Raw Normal View History

2002-04-28 20:42:32 +00:00
#pragma once
2002-03-31 07:55:25 +00:00
/*
-----------------------------------------------------------------------------
Class: GrooveRadar
Desc: The song's GrooveRadar displayed in SelectSong.
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-04-28 20:42:32 +00:00
Chris Danford
2002-03-31 07:55:25 +00:00
-----------------------------------------------------------------------------
*/
#include "ActorFrame.h"
#include "Sprite.h"
#include "Song.h"
2002-04-16 17:31:00 +00:00
const int NUM_RADAR_CATEGORIES = 5;
2002-03-31 07:55:25 +00:00
class GrooveRadar : public ActorFrame
{
public:
2002-04-16 17:31:00 +00:00
GrooveRadar();
2002-03-31 07:55:25 +00:00
2002-05-19 01:59:48 +00:00
void SetFromNotes( PlayerNumber p, Notes* pNotes ) // NULL means no Song
{
m_GrooveRadarValueMap.SetFromNotes( p, pNotes );
}
2002-04-16 17:31:00 +00:00
void TweenOnScreen();
void TweenOffScreen();
2002-03-31 07:55:25 +00:00
protected:
2002-04-16 17:31:00 +00:00
2002-05-19 01:59:48 +00:00
// the value map must be a separate Actor so we can tween it separately from the labels
class GrooveRadarValueMap : public ActorFrame
{
public:
GrooveRadarValueMap();
2002-04-16 17:31:00 +00:00
2002-05-19 01:59:48 +00:00
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
void SetFromNotes( PlayerNumber p, Notes* pNotes ); // NULL means no Song
void TweenOnScreen();
void TweenOffScreen();
bool m_bValuesVisible[NUM_PLAYERS];
float m_PercentTowardNew[NUM_PLAYERS];
float m_fValuesNew[NUM_PLAYERS][NUM_RADAR_CATEGORIES];
float m_fValuesOld[NUM_PLAYERS][NUM_RADAR_CATEGORIES];
Sprite m_sprRadarBase;
};
GrooveRadarValueMap m_GrooveRadarValueMap;
2002-04-28 20:42:32 +00:00
Sprite m_sprRadarLabels[NUM_RADAR_CATEGORIES];
2002-03-31 07:55:25 +00:00
};