blob: f5e25dc3f432cf273a216d4a1fc70aa8313e49e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "astfunction.h"
#include "astbranch.h"
#include "gamestate.h"
AstFunction::AstFunction( const Bu::String &sName ) :
sName( sName ),
pAst( NULL )
{
}
AstFunction::~AstFunction()
{
delete pAst;
}
Variable AstFunction::call( class GameState &gState )
{
gState.parse( pAst );
}
void AstFunction::addParam( const Bu::String &sName )
{
lParam.append( sName );
}
void AstFunction::setAst( class AstBranch *pAst )
{
this->pAst = pAst;
}
|