Remove Invalidate and Restore from Actor, Screen and ScreenManager.

They don't do anything, and they're never called; I think they're
D3D hangovers.

Don't make Actor::DrawPrimitives pure virtual.  It's useful to make
Actors that don't draw anything, and only receive updates, to modularize
functionality, such as TimingTip.  This also makes Actor::GetCommandLength
somewhat less of a heinous hack.
This commit is contained in:
Glenn Maynard
2003-03-28 00:49:01 +00:00
parent 590827ae5f
commit 2e8654909a
5 changed files with 7 additions and 35 deletions
+2 -5
View File
@@ -671,12 +671,9 @@ void Actor::Command( CString sCommandString )
float Actor::GetCommandLength( CString command )
{
class NullActor: public Actor
{
void DrawPrimitives() { }
} temp;
Actor temp;
temp.Command(command);
return temp.GetTweenTimeLeft();
}