Remove ugly CopyTweening. This is too wildly incompatible with newer

XML features, where there's not necessarily any corrolation between elements
of different graphics.  This didn't work well, anyway: it'd apply the old tweening
queue to the new graphics, but they might have completely different animations.
This will cause transitions between NoteSkins to be more abrupt, but we don't
use that feature anyway.
This commit is contained in:
Glenn Maynard
2005-10-05 04:49:09 +00:00
parent 241de76361
commit b76d363994
7 changed files with 0 additions and 38 deletions
-7
View File
@@ -1194,13 +1194,6 @@ void Actor::SetZTestModeString( const CString &s )
else ASSERT(0);
}
void Actor::CopyTweening( const Actor &from )
{
m_current = from.m_current;
m_start = from.m_start;
m_Tweens = from.m_Tweens;
}
void Actor::Sleep( float time )
{
BeginTweening( time, TWEEN_LINEAR );
-1
View File
@@ -116,7 +116,6 @@ public:
virtual void Update( float fDeltaTime ); // this can short circuit UpdateInternal
virtual void UpdateInternal( float fDeltaTime ); // override this
void UpdateTweening( float fDeltaTime );
void CopyTweening( const Actor &from );
const CString &GetName() const { return m_sName; }
virtual void SetName( const CString &sName ) { m_sName = sName; }
-11
View File
@@ -138,17 +138,6 @@ void GhostArrowRow::SetHoldIsActive( int iCol )
m_HoldGhost[iCol]->SetHoldIsActive( true );
}
void GhostArrowRow::CopyTweening( const GhostArrowRow &from )
{
for( int c=0; c<m_iNumCols; c++ )
{
m_GhostDim[c]->CopyTweening( *from.m_GhostDim[c] );
m_GhostBright[c]->CopyTweening( *from.m_GhostBright[c] );
m_HoldGhost[c]->CopyTweening( *from.m_HoldGhost[c] );
}
ActorFrame::CopyTweening( from );
}
/*
* (c) 2001-2004 Chris Danford
* All rights reserved.
-1
View File
@@ -17,7 +17,6 @@ public:
virtual ~GhostArrowRow() { Unload(); }
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
virtual void CopyTweening( const GhostArrowRow &from );
void Load( const PlayerState* pPlayerState, float fYReverseOffset );
void Unload();
-10
View File
@@ -162,17 +162,7 @@ void NoteField::Update( float fDeltaTime )
NoteDisplayCols *cur = SearchForSongBeat();
if( cur != LastDisplay )
{
/* The display has changed. We might be in the middle of a step; copy any
* tweens. */
if( LastDisplay )
{
cur->m_GhostArrowRow.CopyTweening( LastDisplay->m_GhostArrowRow );
cur->m_ReceptorArrowRow.CopyTweening( LastDisplay->m_ReceptorArrowRow );
}
LastDisplay = cur;
}
cur->m_ReceptorArrowRow.Update( fDeltaTime );
cur->m_GhostArrowRow.Update( fDeltaTime );
-7
View File
@@ -83,13 +83,6 @@ void ReceptorArrowRow::SetPressed( int iCol )
m_ReceptorArrow[iCol].SetPressed();
}
void ReceptorArrowRow::CopyTweening( const ReceptorArrowRow &from )
{
for( int c=0; c<m_iNumCols; c++ )
m_ReceptorArrow[c].CopyTweening( from.m_ReceptorArrow[c] );
ActorFrame::CopyTweening( from );
}
/*
* (c) 2001-2003 Chris Danford
* All rights reserved.
-1
View File
@@ -19,7 +19,6 @@ public:
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
virtual void CopyTweening( const ReceptorArrowRow &from );
void Step( int iCol, TapNoteScore score );
void SetPressed( int iCol );