File: ilfield.h

package info (click to toggle)
craft 3.5-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,172 kB
  • ctags: 1,605
  • sloc: cpp: 3,794; makefile: 2,322; ansic: 857; sh: 842
file content (38 lines) | stat: -rw-r--r-- 705 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
#ifndef ilfield_h
#define ilfield_h

#include "craft.h"
#include "craft_def.h"

#define max_il 1000

class ilfield
  {public :

   int  f [max_land_dx][max_land_dy];

   int  num_il;
   int  x_il        [max_il];
   int  y_il        [max_il];
   int  own         [max_il];
   int  num_homes   [max_il];
   int  num_mines   [max_il];
   int  num_worker  [max_il];
   int  num_fighter [max_il];
   int  num_healer  [max_il];
   int  num_trade   [max_il];
   int  others      [max_il];
   int  size        [max_il];


   ilfield               ();
   ~ilfield              ();

   void new_isle (int color, int x, int y);
   void update   (int color);
   void expand   ();
   void set_zero ();
  
 };

#endif