File: formation.h

package info (click to toggle)
craft 3.5-10
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,000 kB
  • ctags: 1,602
  • sloc: cpp: 3,794; makefile: 2,319; ansic: 857; sh: 385
file content (46 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42
43
44
45
46
#ifndef formation_h
#define formation_h

#include "bool.h"
#include "win.h"
#include "cmap.h"
#include "buttons.h"
#include "craft.h"
#include "craft_def.h"


class sector_map;

#define max_forms 20

class formation
  {public :

   int   num;
   int   type   [max_forms];
   int   prio   [max_forms];
   int   x      [max_forms];
   int   y      [max_forms]; 
   char  f_name [128];

   int   s  [8];
   int   l  [8];
   int   ss [8];
   int   ll [8];

   formation    (char name []);
   ~formation   ();

   void  save   ();
   void  save   (char name []);
   void  load   (char name []);
       
   void  edit   ();

   int   match  (sector_map *s);

   void  init   ();

 };

#endif