1 /* Copyright (C) 1995-2002 FSGames. Ported by Sean Ford and Yan Shosh 2 * 3 * This program is free software; you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation; either version 2 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 16 */ 17 #ifndef __RADAR_H 18 #define __RADAR_H 19 20 // Definition of RADAR class 21 22 #include "base.h" 23 24 class radar 25 { 26 public: 27 radar(viewscreen * myview, screen * myscreen, short whatnum); 28 ~radar(); 29 short draw (); 30 short sizex, sizey; 31 short xpos,ypos; 32 short xloc, yloc; // where on the screen to display 33 // Zardus: radarx and radary are now class members (instead of temp vars) so that scen can use them for scroll 34 short radarx, radary; // what actual portion of the map is on the radar (top-left coord) 35 short on_screen(); 36 short on_screen(short whatx, short whaty, short hor, short ver); 37 short refresh(); 38 void update(); // slow function to update radar/map info 39 void start(); 40 41 screen * screenp; 42 viewscreen * viewscreenp; 43 unsigned char *bmp, *oldbmp; 44 short xview; 45 short yview; 46 protected: 47 short mynum; // what is my viewscreen-related number? 48 // char *buffer; 49 short size; 50 }; 51 52 #endif 53 54