File: globals.h

package info (click to toggle)
spider 1.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 852 kB
  • ctags: 1,229
  • sloc: ansic: 6,250; makefile: 839; sh: 9
file content (97 lines) | stat: -rw-r--r-- 1,593 bytes parent folder | download | duplicates (2)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
 *	Spider
 *
 *	(c) Copyright 1989, Donald R. Woods and Sun Microsystems, Inc.
 *	(c) Copyright 1990, David Lemke and Network Computing Devices Inc.
 *
 *	See copyright.h for the terms of the copyright.
 *
 *	@(#)globals.h	2.1	90/04/25
 *
 */

/*
 * spider global variables
 */
Display	*dpy;
int	screen;
Window	table;
#ifdef 	KITLESS
Window	message_win;
XFontStruct	*message_font;
#endif	/* KITLESS */
Pixmap	greenmap;
Pixmap	redmap;
Pixmap	logomap;

unsigned long	blackpixel;
unsigned long	whitepixel;
unsigned long	borderpixel;
unsigned long	greenpixel;

Bool	is_color;

CardList	deck;
CardList	stack[NUM_STACKS];		/* tableau */
CardList	piles[NUM_PILES];		/* full suits */

int		table_height;
int		table_width;

int		deck_index;

int		draw_count;

Bool		restart;
int		deal_number;

extern char	*version;
extern char	*build_date;

/* function decls */
char	*rank_name();
char	*rnk_name();
char	*suit_name();
#ifdef	DEBUG
char	*type_name();
#endif	/* DEBUG */
char	*get_selection();
char	*remove_newlines();

Bool	can_move();
Bool	can_move_to();

CardList	best_card_move();
CardPtr	last_card();

int	replay();

void	best_list_move();
void	move_to_list();
void	move_to_pile();
void	recompute_list_deltas();

void	show_message();
void	card_message();
void	card2_message();
void	clear_message();
void	print_version();

void	show_play();
void	locate();

void	advise_best_move();
void	delay();
void	force_redraw();

#ifndef KITLESS
void	key_press();
void	redraw_table();
void	button_press();
void	button_release();
void	do_expand();
#endif KITLESS

#ifdef XAW
Bool	can_get_help_files();
#endif