#include "global.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 "GameState.h" #include "PrefsManager.h" #include "NoteFieldPositioning.h" GrayArrowRow::GrayArrowRow() { m_iNumCols = 0; } void GrayArrowRow::Load( PlayerNumber pn, CString NoteSkin, float fYReverseOffset ) { m_PlayerNumber = pn; m_fYReverseOffsetPixels = fYReverseOffset; const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); m_iNumCols = pStyleDef->m_iColsPerPlayer; for( int c=0; cm_CurrentPlayerOptions[m_PlayerNumber].m_fDark) ); // set arrow XYZ const float fX = ArrowGetXPos( m_PlayerNumber, c, 0 ); const float fY = ArrowGetYPos( m_PlayerNumber, c, 0, m_fYReverseOffsetPixels ); const float fZ = ArrowGetZPos( m_PlayerNumber, c, 0 ); m_GrayArrow[c].SetX( fX ); m_GrayArrow[c].SetY( fY ); m_GrayArrow[c].SetZ( fZ ); } } void GrayArrowRow::DrawPrimitives() { for( int c=0; c= 0 && iCol < m_iNumCols ); m_GrayArrow[iCol].Step(); } void GrayArrowRow::UpdateBars( int iCol ) { ASSERT( iCol >= 0 && iCol < m_iNumCols ); m_GrayArrow[iCol].UpdateBars(); } void GrayArrowRow::CopyTweening( const GrayArrowRow &from ) { for( int c=0; c