diff --git a/stepmania/src/ActorFrame.cpp b/stepmania/src/ActorFrame.cpp index 0a82a0d37d..77514bec0e 100644 --- a/stepmania/src/ActorFrame.cpp +++ b/stepmania/src/ActorFrame.cpp @@ -62,11 +62,15 @@ void ActorFrame::DrawPrimitives() // Actor::DrawPrimitives(); // draw all sub-ActorFrames while we're in the ActorFrame's local coordinate space - for( unsigned i=0; iDraw(); - } } +void ActorFrame::RunCommandOnChildren( const CString &cmd ) +{ + for( unsigned i=0; iCommand( cmd ); +} void ActorFrame::Update( float fDeltaTime ) { diff --git a/stepmania/src/ActorFrame.h b/stepmania/src/ActorFrame.h index 0c714e84ad..deff5daa32 100644 --- a/stepmania/src/ActorFrame.h +++ b/stepmania/src/ActorFrame.h @@ -23,6 +23,8 @@ public: virtual ~ActorFrame() { } + virtual void RunCommandOnChildren( const CString &cmd ); /* but not on self */ + virtual void Update( float fDeltaTime ); virtual void DrawPrimitives();