add GetCommandLength

This commit is contained in:
Glenn Maynard
2003-03-19 19:56:27 +00:00
parent bd51901eb8
commit 07fadbc8f5
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -636,6 +636,17 @@ void Actor::Command( CString sCommandString )
}
}
float Actor::GetCommandLength( CString command )
{
class NullActor: public Actor
{
void DrawPrimitives() { }
} temp;
temp.Command(command);
return temp.GetTweenTimeLeft();
}
float Actor::GetTweenTimeLeft() const
{
float tot = 0;
+1
View File
@@ -283,6 +283,7 @@ public:
void FadeOff( float fSleepSeconds, CString sFadeString, float fFadeSeconds ) { Fade(fSleepSeconds,sFadeString,fFadeSeconds,true); };
void Command( CString sCommandString );
static float GetCommandLength( CString command );
protected: