00001 #ifndef BEGINNER_HELPER_H 00002 #define BEGINNER_HELPER_H 00003 00004 #include "ActorFrame.h" 00005 #include "Character.h" 00006 #include "Sprite.h" 00007 #include "PlayerNumber.h" 00008 #include "NoteData.h" 00009 class Model; 00010 00011 class BeginnerHelper : public ActorFrame 00012 { 00013 public: 00014 BeginnerHelper(); 00015 ~BeginnerHelper(); 00016 00017 bool Initialize( int iDancePadType ); 00018 bool IsInitialized() { return m_bInitialized; } 00019 static bool CanUse(); 00020 void AddPlayer( PlayerNumber pn, NoteData *pSteps ); 00021 void ShowStepCircle( PlayerNumber pn, int CSTEP ); 00022 bool m_bShowBackground; 00023 00024 void Update( float fDeltaTime ); 00025 virtual void DrawPrimitives(); 00026 00027 protected: 00028 void Step( PlayerNumber pn, int CSTEP ); 00029 00030 NoteData m_NoteData[NUM_PLAYERS]; 00031 bool m_bPlayerEnabled[NUM_PLAYERS]; 00032 Model *m_pDancer[NUM_PLAYERS]; 00033 Model *m_pDancePad; 00034 Sprite m_sFlash; 00035 Sprite m_sBackground; 00036 Sprite m_sStepCircle[NUM_PLAYERS][4]; // More memory, but much easier to manage 00037 00038 int m_iLastRowChecked; 00039 int m_iLastRowFlashed; 00040 bool m_bInitialized; 00041 }; 00042 #endif 00043 00044 /* 00045 * (c) 2003 Kevin Slaughter 00046 * All rights reserved. 00047 * 00048 * Permission is hereby granted, free of charge, to any person obtaining a 00049 * copy of this software and associated documentation files (the 00050 * "Software"), to deal in the Software without restriction, including 00051 * without limitation the rights to use, copy, modify, merge, publish, 00052 * distribute, and/or sell copies of the Software, and to permit persons to 00053 * whom the Software is furnished to do so, provided that the above 00054 * copyright notice(s) and this permission notice appear in all copies of 00055 * the Software and that both the above copyright notice(s) and this 00056 * permission notice appear in supporting documentation. 00057 * 00058 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00059 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00060 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00061 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00062 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00063 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00064 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00065 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00066 * PERFORMANCE OF THIS SOFTWARE. 00067 */