From 0bdf0c2778eccf492455423d8a1db9c6949fd8d4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 11 Jan 2004 07:12:13 +0000 Subject: [PATCH] RunCommandOnChildren --- stepmania/src/ActorFrame.cpp | 8 ++++++-- stepmania/src/ActorFrame.h | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) 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();