00001 /* GhostArrowRow - Row of GhostArrow actors. */ 00002 00003 #ifndef GHOSTARROWROW_H 00004 #define GHOSTARROWROW_H 00005 00006 #include "ActorFrame.h" 00007 #include "GhostArrow.h" 00008 #include "HoldGhostArrow.h" 00009 #include "GameConstantsAndTypes.h" 00010 00011 struct PlayerState; 00012 00013 class GhostArrowRow : public ActorFrame 00014 { 00015 public: 00016 GhostArrowRow(); 00017 virtual ~GhostArrowRow() { Unload(); } 00018 virtual void Update( float fDeltaTime ); 00019 virtual void DrawPrimitives(); 00020 virtual void CopyTweening( const GhostArrowRow &from ); 00021 00022 void Load( const PlayerState* pPlayerState, CString NoteSkin, float fYReverseOffset ); 00023 void Unload(); 00024 00025 void DidTapNote( int iCol, TapNoteScore score, bool bBright ); 00026 void SetHoldIsActive( int iCol ); 00027 00028 protected: 00029 int m_iNumCols; 00030 float m_fYReverseOffsetPixels; 00031 const PlayerState* m_pPlayerState; 00032 00033 vector<GhostArrow *> m_GhostDim; 00034 vector<GhostArrow *> m_GhostBright; 00035 vector<HoldGhostArrow *> m_HoldGhost; 00036 }; 00037 00038 00039 #endif 00040 00041 /* 00042 * (c) 2001-2004 Chris Danford 00043 * All rights reserved. 00044 * 00045 * Permission is hereby granted, free of charge, to any person obtaining a 00046 * copy of this software and associated documentation files (the 00047 * "Software"), to deal in the Software without restriction, including 00048 * without limitation the rights to use, copy, modify, merge, publish, 00049 * distribute, and/or sell copies of the Software, and to permit persons to 00050 * whom the Software is furnished to do so, provided that the above 00051 * copyright notice(s) and this permission notice appear in all copies of 00052 * the Software and that both the above copyright notice(s) and this 00053 * permission notice appear in supporting documentation. 00054 * 00055 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00056 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00057 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00058 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00059 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00060 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00061 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00062 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00063 * PERFORMANCE OF THIS SOFTWARE. 00064 */