File: tfloor.h

package info (click to toggle)
nighthawk 1.0-6
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,420 kB
  • ctags: 18,064
  • sloc: fortran: 17,597; cpp: 4,948; makefile: 87; sh: 13
file content (37 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _TFLOOR_H
#define _TFLOOR_H

#include "tpower_bay.h"
#include "tdoor.h"

typedef struct
{
  int x;
  int y;
} tpoint;

class tfloor
{
public:
  char       name[STR_LABEL_LEN];
  int        spos_x,spos_y;
  char       *map_filename;
  int        fmap_x_size;
  int        fmap_y_size;
  int        *fmap;
  tpower_bay *power_bay;
  tdoor      *door[MAX_DOORS];
  tpoint     transport[MAX_TRANSPORTS];
  tpoint     console;

  tfloor(void);
  virtual int create(int x_size,int y_size);
  int load(char *fn,char *fname);
  void set_pos(int x,int y);
  virtual void draw(void);
  void bg_calc(void);
  void unload(void);
};

#endif