File: well.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 (44 lines) | stat: -rw-r--r-- 763 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
#ifndef well_h
#define well_h

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


#define no_pot    -555555
#define path_pot  -555556

class well
  {public :

 
   int dx;
   int dy;
   int f [max_land_dx][max_land_dy];


   well  (int dx, int dy);
   well  (well *w);
   ~well ();

   void  init   ();
   void  set    (int x, int y, int v);
   void  add    (int x, int y, int v);
   int   ff     (int x, int y);
   bool  prop   (int decent);
   void  show   (char title [], win *&w);
   void  renorm ();
   void  climb  (int x, int y);
   int   climb  (int x, int y, well *but, int &xt, int &yt);
   

 };

void add (well *a, well *b, well *&c); 
void sub (well *a, well *b, well *&c); 

#endif