2004-06-08 00:08:04 +00:00
|
|
|
#ifndef BEGINNER_HELPER_H
|
|
|
|
|
#define BEGINNER_HELPER_H
|
2003-08-20 09:55:52 +00:00
|
|
|
|
|
|
|
|
#include "ActorFrame.h"
|
|
|
|
|
#include "Character.h"
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "PlayerNumber.h"
|
2003-08-25 06:20:44 +00:00
|
|
|
#include "NoteData.h"
|
2004-08-19 01:29:46 +00:00
|
|
|
class Model;
|
2003-08-20 09:55:52 +00:00
|
|
|
|
|
|
|
|
class BeginnerHelper : public ActorFrame
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
BeginnerHelper();
|
|
|
|
|
~BeginnerHelper();
|
|
|
|
|
|
2003-08-31 07:28:19 +00:00
|
|
|
bool Initialize( int iDancePadType );
|
|
|
|
|
bool IsInitialized() { return m_bInitialized; }
|
|
|
|
|
static bool CanUse();
|
2004-08-30 04:35:14 +00:00
|
|
|
void AddPlayer( PlayerNumber pn, NoteData *pSteps );
|
|
|
|
|
void ShowStepCircle( PlayerNumber pn, int CSTEP );
|
2003-09-11 08:46:12 +00:00
|
|
|
bool m_bShowBackground;
|
|
|
|
|
|
2003-08-20 09:55:52 +00:00
|
|
|
void Update( float fDeltaTime );
|
|
|
|
|
virtual void DrawPrimitives();
|
|
|
|
|
|
|
|
|
|
protected:
|
2004-08-30 04:35:14 +00:00
|
|
|
void Step( PlayerNumber pn, int CSTEP );
|
2003-09-08 13:56:08 +00:00
|
|
|
|
2003-08-27 13:36:22 +00:00
|
|
|
NoteData m_NoteData[NUM_PLAYERS];
|
2003-12-02 19:11:51 +00:00
|
|
|
bool m_bPlayerEnabled[NUM_PLAYERS];
|
2004-08-19 01:29:46 +00:00
|
|
|
Model *m_pDancer[NUM_PLAYERS];
|
|
|
|
|
Model *m_pDancePad;
|
2003-08-20 09:55:52 +00:00
|
|
|
Sprite m_sFlash;
|
|
|
|
|
Sprite m_sBackground;
|
2004-06-21 11:02:45 +00:00
|
|
|
Sprite m_sStepCircle[NUM_PLAYERS][4]; // More memory, but much easier to manage
|
2003-08-20 09:55:52 +00:00
|
|
|
|
2004-06-21 11:02:45 +00:00
|
|
|
int m_iLastRowChecked;
|
|
|
|
|
int m_iLastRowFlashed;
|
|
|
|
|
bool m_bInitialized;
|
2003-08-20 09:55:52 +00:00
|
|
|
};
|
2003-08-20 11:48:30 +00:00
|
|
|
#endif
|
2004-06-08 00:08:04 +00:00
|
|
|
|
|
|
|
|
/*
|
2005-10-30 06:22:18 +00:00
|
|
|
* (c) 2003 Kevin Slaughter, Thad Ward
|
2004-06-08 00:08:04 +00:00
|
|
|
* 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.
|
|
|
|
|
*/
|