00001 /* 00002 * Part of rvglue source code, 00003 * Copyright (C) 2000 Alexander Kroeller (alilein@gmx.de) 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 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 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 /* 00021 * $Id$ 00022 * 00023 * $Log$ 00024 */ 00025 #ifndef __TAZ_MODIFIER_H 00026 #define __TAZ_MODIFIER_H 00027 00028 #include "parsedmod.h" 00029 00030 struct Mod_TAZ_Entry; 00031 00032 class Mod_TAZ : public ParsedMod 00033 { 00034 public: 00035 Mod_TAZ(); 00036 virtual ~Mod_TAZ(); 00037 00038 virtual bool apply(Polygon*); 00039 virtual bool bad(void); 00040 virtual bool parse(Parser &); 00041 00042 void dump(const char *pref); 00043 00044 private: 00045 bool parsed; 00046 00047 void enterList(ModList *, rvulong id); 00048 bool readOneList(Parser &); 00049 bool readTAZFile(const char *fname); 00050 bool isPointInZone(Vector &, RV_TAZ_Data &); 00051 00052 rvulong size; 00053 Mod_TAZ_Entry *zones; 00054 ModList *defaultmod; 00055 }; 00056 00057 #endif