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;