Files
itgmania212121/stepmania/src/GrooveRadar.h
T

85 lines
2.5 KiB
C++
Raw Normal View History

2004-06-07 21:14:03 +00:00
/* GrooveRadar - The song's GrooveRadar displayed in SelectSong. */
2002-03-31 07:55:25 +00:00
2004-06-07 21:14:03 +00:00
#ifndef GROOVE_RADAR_H
#define GROOVE_RADAR_H
2002-03-31 07:55:25 +00:00
#include "ActorFrame.h"
#include "Sprite.h"
2003-04-02 04:41:49 +00:00
#include "PlayerNumber.h"
#include "GameConstantsAndTypes.h"
2003-08-03 00:13:55 +00:00
class Steps;
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
2004-06-03 08:22:02 +00:00
void SetEmpty( PlayerNumber pn )
{
SetFromSteps( pn, NULL );
}
2004-05-29 04:50:47 +00:00
void SetFromSteps( PlayerNumber pn, Steps* pSteps ) // NULL means no Song
2002-05-19 01:59:48 +00:00
{
2004-05-29 04:50:47 +00:00
m_GrooveRadarValueMap.SetFromSteps( pn, pSteps );
2002-05-19 01:59:48 +00:00
}
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();
2004-05-29 04:50:47 +00:00
void SetFromSteps( PlayerNumber pn, Steps* pSteps ); // NULL means no Song
2002-05-19 01:59:48 +00:00
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
};
#endif
2004-06-07 21:14:03 +00:00
/*
* (c) 2001-2004 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/