1 #ifndef __SCENERY_H 2 #define __SCENERY_H 3 4 /* 5 SCENERY.H 6 7 Copyright (C) 1991-2001 and beyond by Bungie Studios, Inc. 8 and the "Aleph One" developers. 9 10 This program is free software; you can redistribute it and/or modify 11 it under the terms of the GNU General Public License as published by 12 the Free Software Foundation; either version 3 of the License, or 13 (at your option) any later version. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 19 20 This license is contained in the file "COPYING", 21 which is included with this source code; it is available online at 22 http://www.gnu.org/licenses/gpl.html 23 24 Thursday, December 1, 1994 12:19:13 PM (Jason) 25 26 May 18, 2000 (Loren Petrich): 27 Added XML-parser support 28 */ 29 30 #include "world.h" 31 32 /* ---------- prototypes/SCENERY.C */ 33 34 void initialize_scenery(void); 35 36 short new_scenery(struct object_location *location, short scenery_type); 37 38 void animate_scenery(void); 39 40 // ghs: allow Lua to add and delete scenery 41 void deanimate_scenery(short object_index); 42 void randomize_scenery_shape(short object_index); 43 44 void randomize_scenery_shapes(void); 45 46 void get_scenery_dimensions(short scenery_type, world_distance *radius, world_distance *height); 47 void damage_scenery(short object_index); 48 49 bool get_scenery_collection(short scenery_type, short &collection); 50 bool get_damaged_scenery_collection(short scenery_type, short& collection); 51 52 class InfoTree; 53 void parse_mml_scenery(const InfoTree& root); 54 void reset_mml_scenery(); 55 56 #endif 57