This commit is contained in:
Glenn Maynard
2004-06-01 08:39:36 +00:00
parent 38194e193f
commit 951d497de0
2 changed files with 3 additions and 17 deletions
+1 -14
View File
@@ -12,11 +12,7 @@
*/
#include "HoldGhostArrow.h"
#include "PrefsManager.h"
#include "RageException.h"
#include "RageTimer.h"
#include "NoteSkinManager.h"
#include "GameState.h"
HoldGhostArrow::HoldGhostArrow()
{
@@ -26,8 +22,7 @@ HoldGhostArrow::HoldGhostArrow()
void HoldGhostArrow::Load( CString sNoteSkin, CString sButton, CString sElement )
{
Sprite::Load( NOTESKIN->GetPathToFromNoteSkinAndButton(sNoteSkin, sButton, sElement) ); // not optional
m_sOnCommand = NOTESKIN->GetMetric(sNoteSkin,"HoldGhostArrow","OnCommand");
this->Command( m_sOnCommand );
this->Command( NOTESKIN->GetMetric(sNoteSkin,"HoldGhostArrow","OnCommand") );
}
void HoldGhostArrow::Update( float fDeltaTime )
@@ -36,11 +31,3 @@ void HoldGhostArrow::Update( float fDeltaTime )
m_bHoldIsActive = false;
}
void HoldGhostArrow::DrawPrimitives()
{
if( !m_bHoldIsActive )
return;
Sprite::DrawPrimitives();
}
+2 -3
View File
@@ -13,7 +13,6 @@
*/
#include "Sprite.h"
#include "PlayerNumber.h"
class HoldGhostArrow : public Sprite
{
@@ -23,12 +22,12 @@ public:
virtual void Load( CString sNoteSkin, CString sButton, CString sElement );
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
virtual bool EarlyAbortDraw() { return !m_bHoldIsActive; }
void SetHoldIsActive( bool bHoldIsActive ) { m_bHoldIsActive = bHoldIsActive; }
private:
bool m_bHoldIsActive;
CString m_sOnCommand;
};