1 #ifndef _TFLOOR_H 2 #define _TFLOOR_H 3 4 #include "tpower_bay.h" 5 #include "tdoor.h" 6 7 typedef struct 8 { 9 int x; 10 int y; 11 } tpoint; 12 13 class tfloor 14 { 15 public: 16 char name[STR_LABEL_LEN + 1], 17 *map_filename; 18 int spos_x, spos_y, 19 fmap_x_size, 20 fmap_y_size, 21 *fmap, 22 down; 23 // int ship_noise_no; 24 // int ship_noise_vol; 25 // int ship_noise_freq; 26 tpower_bay *power_bay; 27 tdoor *door[MAX_DOORS]; 28 tpoint transport[MAX_TRANSPORTS]; 29 tpoint console; 30 float colour; 31 32 tfloor(void); 33 virtual void create(int x_size, int y_size); 34 void load(char *fn, char *fname); 35 void set_pos(int x, int y); 36 void reinit(void); 37 virtual void draw(void); 38 void bg_calc(void); 39 void unload(void); 40 }; 41 42 #endif 43