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
+7 -7
View File
@@ -3,13 +3,13 @@
#include "ScreenDimensions.h"
#include "GameState.h"
#include "ThemeManager.h"
#include "ThemeMetric.h"
#define IN_COMMAND THEME->GetMetric("LyricDisplay","InCommand")
#define OUT_COMMAND THEME->GetMetric("LyricDisplay","OutCommand")
#define WIPE_DIM_FACTOR THEME->GetMetricC("LyricDisplay","WipeDimFactor")
static ThemeMetric<ActorCommands> IN_COMMAND ("LyricDisplay","InCommand");
static ThemeMetric<ActorCommands> OUT_COMMAND ("LyricDisplay","OutCommand");
static ThemeMetric<RageColor> WIPE_DIM_FACTOR ("LyricDisplay","WipeDimFactor");
float g_TweenInTime, g_TweenOutTime;
static float g_TweenInTime, g_TweenOutTime;
LyricDisplay::LyricDisplay()
{
@@ -30,8 +30,8 @@ void LyricDisplay::Init()
m_iCurLyricNumber = 0;
/* Update global cache: */
g_TweenInTime = Actor::GetCommandLengthSeconds(IN_COMMAND);
g_TweenOutTime = Actor::GetCommandLengthSeconds(OUT_COMMAND);
g_TweenInTime = Actor::GetCommandsLengthSeconds(IN_COMMAND);
g_TweenOutTime = Actor::GetCommandsLengthSeconds(OUT_COMMAND);
m_fLastSecond = -500;
}