use Lua to execute commands

(needs cleanup)
This commit is contained in:
Chris Danford
2005-01-26 11:21:43 +00:00
parent 1f00c84293
commit 8555a6da45
60 changed files with 816 additions and 246 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
#include <set>
#include "PlayerState.h"
CString GetAttackPath( const CString &sAttack )
{
CString ret = ssprintf( "AttackDisplay attack %s", sAttack.c_str() );
@@ -110,7 +111,7 @@ void AttackDisplay::SetAttack( const CString &sText )
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
const CString sName = ssprintf( "%sP%i", sText.c_str(), pn+1 );
m_sprAttack.RunCommands( THEME->GetMetricA("AttackDisplay", sName + "OnCommand" ) );
m_sprAttack.RunCommands( THEME->GetMetricA("AttackDisplay", sName + "OnCommand") );
}
/*