File: common.h

package info (click to toggle)
gfpoken 1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,932 kB
  • ctags: 417
  • sloc: ansic: 2,984; sh: 1,446; makefile: 125
file content (80 lines) | stat: -rw-r--r-- 2,984 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* common.h - include file for GFingerPoken
 * Copyright 1999-2000  Martin Hock
 * Copyright 2005  Bas Wijnen <wijnen@debian.org>
 *
 * This file is part of Gfingerpoken.
 *
 * Gfingerpoken is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gfingerpoken is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* Variable Declarations */
int gamestatus;
extern unsigned int dragbuf[DrNum]; /* Draggable buffer for list on right */
extern unsigned int bufsize, originalbuf; /* Number of items in buffer */
extern pos buttonx, buttony; /* Location of button press, in tiles.  */

extern pos gridx, gridy; /* Size of world */
extern obj *grid;
extern obj *invisigrid;
extern obj *markgrid;


/* For animation */
extern pos animsrcx, animsrcy;
/*pos animdestx, animdesty; */
extern int animx, animy;
extern int oldanimx, oldanimy;
extern vect animsrcdir, animdir; /* Use D directions */
extern pos invisx, invisy;
extern vect invisdir;
extern int animmode; /* 0 = off, 1 = start, 2 = in progress */
extern int animframe; /* 0 through pixwidth/height - 1 */
extern int checked; /* 0 = unchecked, 1 = checked */
extern int netmode; /* 0 = no network, 1 = client, 2 = server */
extern int category; /* 0 = synchronous, 1 = assynchronous (for net mode) */
extern int paralyzed; /* 0 = local (my turn), 1 = remote (your turn) */
extern int completed; /* 0 = still in process of moving, 1 = have performed test */
extern int opponentdone; /* 0 = opponent still moving, 1 = opponent done */
extern int pendack; /* Number of pending acks */
extern int boardshow; /* 0: Show the hidden board */

/* extern int setmainpos; * Are mainxpos and mainypos valid? */
/*  extern gint mainxpos, mainypos; * X and Y position of main window */

extern pos outy, outx; /* Registers for grideval's output - DAMN I hate functions */
extern vect outdir;
extern int evalret;
extern pos updy, updx; /* For moving mirrors, the update places */


extern int deltabufwidth, deltabufheight;
extern int deltabufx, deltabufy;

extern pos arrhistptr; /* This is a queue */
extern pos arrinused[histsize];
extern pos arroutused[histsize];
extern pos arroutx[histsize], arrouty[histsize]; 
extern pos arroutdir[histsize]; 
extern pos arrinx[histsize], arriny[histsize];
extern vect arrindir[histsize];

extern unsigned int density; /* % of squares that should be filled */
extern unsigned int densityfuzz; /* +/- densityfuzz% */
extern unsigned int classweight[NumClasses];

extern histhash *histkeeper;