2003-08-20 09:55:52 +00:00
|
|
|
#ifndef BEGINNERHELPER_H
|
|
|
|
|
#define BEGINNERHELPER_H
|
|
|
|
|
|
|
|
|
|
#include "ActorFrame.h"
|
|
|
|
|
#include "Model.h"
|
|
|
|
|
#include "Character.h"
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "PlayerNumber.h"
|
2003-08-25 06:20:44 +00:00
|
|
|
#include "NoteData.h"
|
2003-08-20 09:55:52 +00:00
|
|
|
|
|
|
|
|
class BeginnerHelper : public ActorFrame
|
|
|
|
|
{
|
|
|
|
|
public:
|
2003-08-20 11:48:30 +00:00
|
|
|
enum STEPTYPE
|
2003-08-20 09:55:52 +00:00
|
|
|
{
|
|
|
|
|
ST_LEFT=6,
|
|
|
|
|
ST_DOWN=3,
|
|
|
|
|
ST_UP=8,
|
|
|
|
|
ST_RIGHT=4,
|
|
|
|
|
ST_JUMPLR=10,
|
|
|
|
|
ST_JUMPUD=11
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BeginnerHelper();
|
|
|
|
|
~BeginnerHelper();
|
|
|
|
|
|
|
|
|
|
ActorFrame m_afDancerSuite; // So we can easily rotate or whatever without disturbing the Background.
|
|
|
|
|
|
|
|
|
|
void FlashOnce();
|
2003-08-31 07:28:19 +00:00
|
|
|
bool Initialize( int iDancePadType );
|
|
|
|
|
bool IsInitialized() { return m_bInitialized; }
|
|
|
|
|
static bool CanUse();
|
2003-08-27 13:36:22 +00:00
|
|
|
void AddPlayer( int pn, NoteData *pNotes );
|
2003-08-20 09:55:52 +00:00
|
|
|
void SetFlash(CString sFilename, float fX, float fY);
|
2003-08-27 13:36:22 +00:00
|
|
|
void ShowStepCircle( int pn, int CSTEP );
|
2003-08-20 09:55:52 +00:00
|
|
|
void TurnFlashOff();
|
|
|
|
|
void TurnFlashOn();
|
|
|
|
|
|
|
|
|
|
void Update( float fDeltaTime );
|
|
|
|
|
virtual void DrawPrimitives();
|
|
|
|
|
|
|
|
|
|
protected:
|
2003-09-08 13:56:08 +00:00
|
|
|
void Step( int pn, int CSTEP );
|
|
|
|
|
|
2003-08-27 13:36:22 +00:00
|
|
|
NoteData m_NoteData[NUM_PLAYERS];
|
2003-08-20 09:55:52 +00:00
|
|
|
Model m_mDancer[NUM_PLAYERS];
|
|
|
|
|
Model m_mDancePad;
|
|
|
|
|
Sprite m_sFlash;
|
|
|
|
|
Sprite m_sBackground;
|
|
|
|
|
Sprite m_sStepCircle[NUM_PLAYERS*2]; // Need two for each player during jumps
|
|
|
|
|
|
2003-08-30 11:13:14 +00:00
|
|
|
float m_fLastBeatChecked;
|
2003-08-25 06:20:44 +00:00
|
|
|
bool m_bInitialized;
|
2003-08-20 09:55:52 +00:00
|
|
|
bool m_bFlashEnabled;
|
|
|
|
|
};
|
2003-08-20 11:48:30 +00:00
|
|
|
#endif
|