summaryrefslogtreecommitdiff
path: root/src/astfunction.h
blob: 4b2a049c97a856956fb5a0fe09c9d74b3eb8fdb7 (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
#ifndef AST_FUNCTION_H
#define AST_FUNCTION_H

#include "function.h"

class AstFunction : public Function
{
public:
	AstFunction( const Bu::String &sName );
	virtual ~AstFunction();

	virtual Bu::String getName() const { return sName; }
	virtual Variable call( class GameState &gState );

	void addParam( const Bu::String &sName );
	void setAst( class AstBranch *pAst );

private:
	Bu::String sName;
	Bu::StringList lParam;
	class AstBranch *pAst;
};

#endif