Planeshift
|
00001 /* 00002 * mathscript.h by Keith Fulton <[email protected]> 00003 * 00004 * Copyright (C) 2004 PlaneShift Team ([email protected], 00005 * http://www.planeshift.it) 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation (version 2 of the License) 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 */ 00019 #ifndef __MATHSCRIPTVAR_H__ 00020 #define __MATHSCRIPTVAR_H__ 00021 00022 class MathEnvironment; 00023 00028 class iScriptableVar 00029 { 00030 public: 00031 virtual double GetProperty(MathEnvironment*, const char *ptr)=0; 00032 virtual double CalcFunction(MathEnvironment*, const char * functionName, const double * params) = 0; 00033 virtual const char* ToString() = 0; 00034 virtual ~iScriptableVar() {}; 00035 }; 00036 00039 #endif 00040