From 2574a30592090c76b62206d72a7091ff5d2c15af Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 1 Sep 2005 07:28:52 +0000 Subject: [PATCH] allow Actor as a type directly --- stepmania/src/Actor.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index f360f11ba1..44acb070fa 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -15,6 +15,18 @@ #include "LuaReference.h" #include "MessageManager.h" #include "LightsManager.h" // for NUM_CABINET_LIGHTS +#include "ActorUtil.h" + +/* It's useful to be able to construct a basic Actor in XML, in + * order to simply delay a Transition, or receive and send broadcasts. + * Since these actors will never draw, set them hidden by default. */ +class HiddenActor: public Actor +{ +public: + HiddenActor() { SetHidden(true); } + virtual Actor *Copy() const; +}; +REGISTER_ACTOR_CLASS_WITH_NAME( HiddenActor, Actor ) float Actor::g_fCurrentBGMTime = 0, Actor::g_fCurrentBGMBeat;