Pass ActorCommand structures to Actor instead of unparsed command strings.

This way, we can potentially do the parsing early and not parse inside of Actor as the command is executing.
This commit is contained in:
Chris Danford
2004-11-06 23:13:47 +00:00
parent 6a84b15d3d
commit bcbe615c0d
55 changed files with 349 additions and 308 deletions
+18 -15
View File
@@ -411,25 +411,28 @@ void ScreenEz2SelectMusic::MenuBack( PlayerNumber pn )
void ScreenEz2SelectMusic::TweenOffScreen()
{
m_MusicBannerWheel.Command( "linear,0.5;zoomy,0" );
m_PumpDifficultyCircle.Command( "Linear,1;DiffuseAlpha,0" );
m_Guide.Command( "Linear,1;DiffuseAlpha,0" );
m_PumpDifficultyRating.Command( "Linear,1;DiffuseAlpha,0" );
m_Guide.Command( "Linear,1;DiffuseAlpha,0" );
m_ChoiceListFrame.Command( "Linear,1;DiffuseAlpha,0" );
m_ChoiceListHighlight.Command( "Linear,1;DiffuseAlpha,0" );
m_CurrentGroup.Command( "Linear,1;DiffuseAlpha,0" );
m_CurrentTitle.Command( "Linear,1;DiffuseAlpha,0" );
m_CurrentArtist.Command( "Linear,1;DiffuseAlpha,0" );
static const ActorCommands cmds = ParseActorCommands("linear,0.5;zoomy,0");
m_MusicBannerWheel.Command( cmds );
static const ActorCommands cmds2 = ParseActorCommands("Linear,1;DiffuseAlpha,0");
m_PumpDifficultyCircle.Command( cmds2 );
m_Guide.Command( cmds2 );
m_PumpDifficultyRating.Command( cmds2 );
m_Guide.Command( cmds2 );
m_ChoiceListFrame.Command( cmds2 );
m_ChoiceListHighlight.Command( cmds2 );
m_CurrentGroup.Command( cmds2 );
m_CurrentTitle.Command( cmds2 );
m_CurrentArtist.Command( cmds2 );
//This should be fixed and changed to OFF_COMMAND
for(int i=0; i<NUM_PLAYERS; i++)
{
m_SpeedIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
m_MirrorIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
m_ShuffleIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
m_HiddenIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
m_VanishIcon[i].Command( "Linear,1;DiffuseAlpha,0" );
m_SpeedIcon[i].Command( cmds2 );
m_MirrorIcon[i].Command( cmds2 );
m_ShuffleIcon[i].Command( cmds2 );
m_HiddenIcon[i].Command( cmds2 );
m_VanishIcon[i].Command( cmds2 );
}
}