58 lines
1017 B
C++
58 lines
1017 B
C++
#ifndef DIFFICULTY_LIST
|
|
#define DIFFICULTY_LIST
|
|
|
|
#include "ActorFrame.h"
|
|
#include "ActorUtil.h"
|
|
#include "PlayerNumber.h"
|
|
#include "BitmapText.h"
|
|
|
|
class DifficultyMeter;
|
|
class Song;
|
|
class Steps;
|
|
|
|
#define MAX_METERS 16
|
|
|
|
class DifficultyList: public ActorFrame
|
|
{
|
|
public:
|
|
DifficultyList();
|
|
~DifficultyList();
|
|
|
|
void Load();
|
|
void SetFromGameState();
|
|
void TweenOnScreen();
|
|
void TweenOffScreen();
|
|
void Hide();
|
|
void Show();
|
|
|
|
private:
|
|
void UpdatePositions();
|
|
void PositionItems( bool TweenOn );
|
|
void GetCurrentRows( int iCurrentRow[NUM_PLAYERS] );
|
|
|
|
DifficultyMeter *m_Meters;
|
|
AutoActor m_Cursors[NUM_PLAYERS];
|
|
ActorFrame m_CursorFrames[NUM_PLAYERS];
|
|
BitmapText m_Descriptions[MAX_METERS];
|
|
BitmapText m_Number[MAX_METERS];
|
|
Song *m_CurSong;
|
|
bool m_bShown;
|
|
|
|
struct Row
|
|
{
|
|
Row();
|
|
|
|
Steps *m_Steps;
|
|
float m_fY;
|
|
bool m_bHidden; // currently off screen
|
|
};
|
|
|
|
vector<Row*> m_Rows;
|
|
};
|
|
|
|
#endif
|
|
/*
|
|
* Copyright (c) 2003-2004 by the person(s) listed below. All rights reserved.
|
|
* Glenn Maynard
|
|
*/
|