blob: a546b19f5ad4ca0741df8ea6c790c096de8a4765 (
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
|
#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 );
const Bu::StringList &getParamList() { return lParam; }
void setAst( class AstBranch *pAst );
private:
Bu::String sName;
Bu::StringList lParam;
class AstBranch *pAst;
};
#endif
|