1 #ifndef __MOTION_SENSOR_H 2 #define __MOTION_SENSOR_H 3 4 /* 5 MOTION_SENSOR.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 Friday, June 17, 1994 12:10:02 PM 25 26 Jan 30, 2000 (Loren Petrich) 27 Changed "friend" to "_friend" to make data structures more C++-friendly 28 29 May 1, 2000 (Loren Petrich): Added XML parser object for the stuff here. 30 */ 31 32 #include "shape_descriptors.h" 33 34 enum { 35 MType_Friend, // What you, friendly players, and the Bobs are 36 MType_Alien, // What the other critters are 37 MType_Enemy, // What hostile players are 38 NUMBER_OF_MDISPTYPES 39 }; 40 41 42 /* ---------- prototypes/MOTION_SENSOR.C */ 43 44 void initialize_motion_sensor(shape_descriptor mount, shape_descriptor virgin_mounts, 45 shape_descriptor alien, shape_descriptor _friend, shape_descriptor enemy, 46 shape_descriptor network_compass, short side_length); 47 void reset_motion_sensor(short monster_index); 48 void motion_sensor_scan(void); 49 bool motion_sensor_has_changed(void); 50 void adjust_motion_sensor_range(void); 51 52 class InfoTree; 53 void parse_mml_motion_sensor(const InfoTree& root); 54 void reset_mml_motion_sensor(); 55 56 #endif 57