allow Actor as a type directly

This commit is contained in:
Glenn Maynard
2005-09-01 07:28:52 +00:00
parent b401f80bfe
commit 2574a30592
+12
View File
@@ -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;