rename: ActorCommand -> Command

Make Command smaller and more generic.
Parse arguments on use, not in Command::Load.
This commit is contained in:
Chris Danford
2004-12-03 05:19:46 +00:00
parent abb6a73e4b
commit ed19821e09
67 changed files with 592 additions and 581 deletions
+7 -5
View File
@@ -719,20 +719,22 @@ void Model::SetSecondsIntoAnimation( float fSeconds )
}
}
void Model::HandleCommand( const ActorCommand &command )
void Model::HandleCommand( const Command &command )
{
BeginHandleParams;
BeginHandleArgs;
const CString& sName = sParam(0);
const CString& sName = command.GetName();
if( sName=="play" )
PlayAnimation( sParam(1),fParam(2) );
{
PlayAnimation( sArg(1),fArg(2) );
}
else
{
Actor::HandleCommand( command );
return;
}
EndHandleParams;
EndHandleArgs;
}
/*