add pre-parsing for ActorCommands (though not yet used in ThemeManager)

This commit is contained in:
Chris Danford
2004-01-10 20:34:18 +00:00
parent 7c6321d4a8
commit f7647ae391
15 changed files with 66 additions and 120 deletions
+3 -5
View File
@@ -245,16 +245,14 @@ void BGAnimation::PlayCommand( const CString &cmd )
m_Layers[i]->PlayCommand( cmd );
}
void BGAnimation::HandleCommand( const CStringArray &asTokens )
void BGAnimation::HandleCommand( const ParsedCommand &command )
{
HandleParams;
const CString& sName = asTokens[0];
if( sName=="playcommand" ) PlayCommand( sParam(1) );
if( sParam(0)=="playcommand" ) PlayCommand( sParam(1) );
else
{
Actor::HandleCommand( asTokens );
Actor::HandleCommand( command );
return;
}