#include "stdafx.h" /* ----------------------------------------------------------------------------- Class: GrayArrowRow Desc: See header. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "GrayArrowRow.h" #include "RageUtil.h" #include "GameConstantsAndTypes.h" #include "PrefsManager.h" #include "ArrowEffects.h" #include "GameManager.h" #include "GameState.h" #include "PrefsManager.h" GrayArrowRow::GrayArrowRow() { m_iNumCols = 0; } void GrayArrowRow::Load( PlayerNumber pn ) { m_PlayerNumber = pn; const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); m_iNumCols = pStyleDef->m_iColsPerPlayer; for( int c=0; cGetPathTo(c, "receptor"); m_GrayArrow[c].Load( sPath ); if( m_GrayArrow[c].GetNumStates() != 2 ) throw RageException( "'%s' must have two frames", sPath.GetString() ); m_GrayArrow[c].SetX( pStyleDef->m_ColumnInfo[pn][c].fXOffset ); } } void GrayArrowRow::Update( float fDeltaTime ) { for( int c=0; cm_PlayerOptions[m_PlayerNumber].m_bDark ) return; for( int c=0; c= 0 && iCol < m_iNumCols ); m_GrayArrow[iCol].Step(); }