Planeshift
scriptvar.h
Go to the documentation of this file.
1 /*
2  * mathscript.h by Keith Fulton <keith@planeshift.it>
3  *
4  * Copyright (C) 2004 PlaneShift Team (info@planeshift.it,
5  * http://www.planeshift.it)
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 #ifndef __MATHSCRIPTVAR_H__
20 #define __MATHSCRIPTVAR_H__
21 
22 class MathEnvironment;
23 
29 {
30 public:
31  virtual double GetProperty(MathEnvironment*, const char *ptr)=0;
32  virtual double CalcFunction(MathEnvironment*, const char * functionName, const double * params) = 0;
33  virtual const char* ToString() = 0;
34  virtual ~iScriptableVar() {};
35 };
36 
39 #endif
40 
virtual const char * ToString()=0
A specific MathEnvironment to be used in a MathScript.
Definition: mathscript.h:188
virtual double GetProperty(MathEnvironment *, const char *ptr)=0
virtual double CalcFunction(MathEnvironment *, const char *functionName, const double *params)=0
virtual ~iScriptableVar()
Definition: scriptvar.h:34