Files
itgmania212121/stepmania/src/GhostArrow.cpp
T
2003-09-15 05:54:14 +00:00

46 lines
1002 B
C++

#include "global.h"
/*
-----------------------------------------------------------------------------
Class: GhostArrow
Desc: See header.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Ben Nordstrom
Chris Danford
-----------------------------------------------------------------------------
*/
#include "GhostArrow.h"
#include "NoteSkinManager.h"
#include "GameState.h"
GhostArrow::GhostArrow()
{
SetDiffuse( RageColor(1,1,1,0) );
}
void GhostArrow::Init( PlayerNumber pn )
{
m_PlayerNumber = pn;
for( int i=0; i<NUM_TAP_NOTE_SCORES; i++ )
{
CString sJudge = TapNoteScoreToString( (TapNoteScore)i );
CString sCommand = Capitalize(sJudge)+"Command";
m_sScoreCommand[i] = NOTESKIN->GetMetric(GAMESTATE->m_PlayerOptions[pn].m_sNoteSkin,m_sName,sCommand);
}
}
void GhostArrow::Update( float fDeltaTime )
{
Sprite::Update( fDeltaTime );
}
void GhostArrow::Step( TapNoteScore score )
{
this->StopTweening();
this->Command( m_sScoreCommand[score] );
}