Add scripting support to ScreenGamplay

This commit is contained in:
Chris Danford
2003-04-13 21:52:50 +00:00
parent 258984a9c2
commit d68ff05337
+23
View File
@@ -0,0 +1,23 @@
#ifndef ActorUtil_H
#define ActorUtil_H
/*
-----------------------------------------------------------------------------
Class: ActorUtil
Desc: Helpful macros
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Actor.h"
#define SET_XY( actor ) (actor).SetXY( THEME->GetMetricF(m_sName,(actor).GetName()+"X"), THEME->GetMetricF(m_sName,(actor).GetName()+"Y") );
#define ON_COMMAND( actor ) (actor).Command( THEME->GetMetric(m_sName,(actor).GetName()+"OnCommand") )
#define OFF_COMMAND( actor ) (actor).Command( THEME->GetMetric(m_sName,(actor).GetName()+"OffCommand") )
#define SET_XY_AND_ON_COMMAND( actor ) { SET_XY(actor); ON_COMMAND(actor); }
#endif