merge PlayCommand2 and PlayCommand so that Actor derivities only have to override one method to get the correct behavior

This commit is contained in:
Chris Danford
2005-06-12 00:35:08 +00:00
parent f7c6023412
commit 623dc2512f
16 changed files with 51 additions and 94 deletions
+2 -2
View File
@@ -50,14 +50,14 @@ void ScoreDisplayCalories::Update( float fDelta )
RollingNumbers::Update( fDelta );
}
void ScoreDisplayCalories::PlayCommand( const CString &sCommandName )
void ScoreDisplayCalories::PlayCommand( const CString &sCommandName, Actor* pParent )
{
if( sCommandName == m_sMessageOnStep )
{
UpdateNumber();
}
RollingNumbers::PlayCommand( sCommandName );
RollingNumbers::PlayCommand( sCommandName, pParent );
}
void ScoreDisplayCalories::UpdateNumber()