Files
itgmania212121/stepmania/src/GhostArrow.cpp
T

46 lines
1002 B
C++
Raw Normal View History

2003-02-16 04:01:45 +00:00
#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
-----------------------------------------------------------------------------
*/
2001-12-01 23:46:09 +00:00
#include "GhostArrow.h"
#include "NoteSkinManager.h"
2003-09-15 05:54:14 +00:00
#include "GameState.h"
2001-12-01 23:46:09 +00:00
GhostArrow::GhostArrow()
{
SetDiffuse( RageColor(1,1,1,0) );
2001-12-01 23:46:09 +00:00
}
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";
2003-09-15 05:54:14 +00:00
m_sScoreCommand[i] = NOTESKIN->GetMetric(GAMESTATE->m_PlayerOptions[pn].m_sNoteSkin,m_sName,sCommand);
}
}
2002-02-24 01:43:11 +00:00
void GhostArrow::Update( float fDeltaTime )
{
Sprite::Update( fDeltaTime );
}
void GhostArrow::Step( TapNoteScore score )
2001-12-01 23:46:09 +00:00
{
2003-08-12 06:49:25 +00:00
this->StopTweening();
this->Command( m_sScoreCommand[score] );
2001-12-01 23:46:09 +00:00
}