File: shapes.h

package info (click to toggle)
pacman 10-19
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 848 kB
  • sloc: cpp: 4,363; sh: 83; makefile: 46
file content (223 lines) | stat: -rw-r--r-- 11,913 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#include"basis.h"    

#ifdef XWIN
#define SHAPETYPE char	//the bits in the char (8 bits)
#elif defined MSWIN
#define SHAPETYPE short	//2 bytes, 16 bits needed
#elif defined VTX
#define SHAPETYPE char	//the actual character
#endif

#ifdef XWIN	//X-Win only, seems to want it mirrored about Y-axis
#ifndef DOUBLE
static SHAPETYPE pacman0_bits[]=    {0x3c,0x7e,0xff,0xff,0xff,0xff,0x7e,0x3c};
static SHAPETYPE pacmanleft_bits[]= {0x3c,0x68,0xf0,0xe0,0xe0,0xf0,0x78,0x3c};
static SHAPETYPE pacmanright_bits[]={0x3c,0x16,0x0f,0x07,0x07,0x0f,0x1e,0x3c};
static SHAPETYPE pacmanup_bits[]=   {0x00,0x00,0x81,0xc3,0xa7,0xff,0x7e,0x3c};
static SHAPETYPE pacmandown_bits[]= {0x3c,0x7e,0xff,0xa7,0xc3,0x81,0x00,0x00};

static SHAPETYPE vertwall_bits[]={0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c};

static SHAPETYPE horiwall_bits[]={0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00};

static SHAPETYPE blank_bits[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static SHAPETYPE cross_bits[]={0x3c,0x3c,0xff,0xff,0xff,0xff,0x3c,0x3c};

static SHAPETYPE food_bits[]={0x00,0x00,0x18,0x3c,0x3c,0x18,0x00,0x00};

static SHAPETYPE superfood_bits[]={0x00,0x3c,0x7e,0x7e,0x7e,0x7e,0x3c,0x00};

static SHAPETYPE ghost_bits[]={0x18,0x7e,0xff,0xdb,0xff,0xff,0xff,0xa5};

static SHAPETYPE corner2_bits[]={0x3c,0x3e,0x3f,0x3f,0x3f,0x1f,0x00,0x00};

static SHAPETYPE corner3_bits[]={0x00,0x00,0x1f,0x3f,0x3f,0x3f,0x3e,0x3c};

static SHAPETYPE corner4_bits[]={0x00,0x00,0xf8,0xfc,0xfc,0xfc,0x7c,0x3c};

static SHAPETYPE corner1_bits[]={0x3c,0x7c,0xfc,0xfc,0xfc,0xf8,0x00,0x00};

static SHAPETYPE specwall_bits[]={0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00};

static SHAPETYPE bonuspoint_bits[]={0x00,0x00,0x24,0x18,0x18,0x24,0x00,0x00};

static SHAPETYPE bonuslife_bits[]={0x00,0x00,0x1c,0x38,0x38,0x1c,0x00,0x00};

static SHAPETYPE e180_bits[]={0x00,0x00,0xf8,0xfc,0xfc,0xf8,0x00,0x00};

static SHAPETYPE e90_bits[]={0x00,0x00,0x18,0x3c,0x3c,0x3c,0x3c,0x3c};

static SHAPETYPE e0_bits[]={0x00,0x00,0x1f,0x3f,0x3f,0x1f,0x00,0x00};

static SHAPETYPE e270_bits[]={0x3c,0x3c,0x3c,0x3c,0x3c,0x18,0x00,0x00};

static SHAPETYPE t0_bits[]={0x00,0x00,0xff,0xff,0xff,0xff,0x7e,0x3c};

static SHAPETYPE t270_bits[]={0x3c,0x3e,0x3f,0x3f,0x3f,0x3f,0x3e,0x3c};

static SHAPETYPE t180_bits[]={0x3c,0x7e,0xff,0xff,0xff,0xff,0x00,0x00};

static SHAPETYPE t90_bits[]={0x3c,0x7c,0xfc,0xfc,0xfc,0xfc,0x7c,0x3c};
#else
static unsigned SHAPETYPE pacman0_bits[]=    {0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x3f, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xfc, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};
static unsigned SHAPETYPE pacmanleft_bits[]= {0xf0, 0x0f, 0xf0, 0x0f, 0xc0, 0x3c, 0xc0, 0x3c, 0x00, 0xff, 0x00, 0xff, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0xff, 0x00, 0xff, 0xc0, 0x3f, 0xc0, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};
static unsigned SHAPETYPE pacmanright_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0x3c, 0x03, 0x3c, 0x03, 0xff, 0x00, 0xff, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0xff, 0x00, 0xff, 0x00, 0xfc, 0x03, 0xfc, 0x03, 0xf0, 0x0f, 0xf0, 0x0f};
static unsigned SHAPETYPE pacmanup_bits[]=   {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x03, 0xc0, 0x0f, 0xf0, 0x0f, 0xf0, 0x33, 0xfc, 0x33, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xfc, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};
static unsigned SHAPETYPE pacmandown_bits[]= {0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x3f, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0x33, 0xfc, 0x33, 0xfc, 0x0f, 0xf0, 0x0f, 0xf0, 0x03, 0xc0, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE vertwall_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE horiwall_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static SHAPETYPE blank_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE cross_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE food_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xc0, 0x03, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xc0, 0x03, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE superfood_bits[]={0x00, 0x00, 0x00, 0x00, 0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x3f, 0xfc, 0x3f, 0xfc, 0x3f, 0xfc, 0x3f, 0xfc, 0x3f, 0xfc, 0x3f, 0xfc, 0x3f, 0xfc, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE ghost_bits[]={0xc0, 0x03, 0xc0, 0x03, 0xfc, 0x3f, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xf3, 0xcf, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x33, 0xcc, 0x33, 0xcc};

static unsigned SHAPETYPE corner2_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x03, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE corner3_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0xff, 0x03, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE corner4_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xc0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE corner1_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xc0, 0xff, 0xc0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE specwall_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE bonuspoint_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x30, 0x0c, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0x30, 0x0c, 0x30, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE bonuslife_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0xf0, 0x03, 0xc0, 0x0f, 0xc0, 0x0f, 0xc0, 0x0f, 0xc0, 0x0f, 0xf0, 0x03, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE e180_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xc0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xc0, 0xff, 0xc0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE e90_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xc0, 0x03, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE e0_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0xff, 0x03, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x03, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE e270_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xc0, 0x03, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE t0_bits[]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xfc, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE t270_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f};

static unsigned SHAPETYPE t180_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x3f, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

static unsigned SHAPETYPE t90_bits[]={0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};

#endif


#elif defined MSWIN			//MS-Win only

static SHAPETYPE pacman0_bits[]=    {0x3c,0x7e,0xff,0xff,0xff,0xff,0x7e,0x3c};
static SHAPETYPE pacmanright_bits[]= {0x3c,0x68,0xf0,0xe0,0xe0,0xf0,0x78,0x3c};
static SHAPETYPE pacmanleft_bits[]={0x3c,0x16,0x0f,0x07,0x07,0x0f,0x1e,0x3c};
static SHAPETYPE pacmanup_bits[]=   {0x00,0x00,0x81,0xc3,0xa7,0xff,0x7e,0x3c};
static SHAPETYPE pacmandown_bits[]= {0x3c,0x7e,0xff,0xa7,0xc3,0x81,0x00,0x00};

static SHAPETYPE vertwall_bits[]={0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c};

static SHAPETYPE horiwall_bits[]={0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00};

static SHAPETYPE blank_bits[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static SHAPETYPE cross_bits[]={0x3c,0x3c,0xff,0xff,0xff,0xff,0x3c,0x3c};

static SHAPETYPE food_bits[]={0x00,0x00,0x18,0x3c,0x3c,0x18,0x00,0x00};

static SHAPETYPE superfood_bits[]={0x00,0x3c,0x7e,0x7e,0x7e,0x7e,0x3c,0x00};

static SHAPETYPE ghost_bits[]={0x18,0x7e,0xff,0xdb,0xff,0xff,0xff,0xa5};

static SHAPETYPE corner1_bits[]={0x3c,0x3e,0x3f,0x3f,0x3f,0x1f,0x00,0x00};

static SHAPETYPE corner4_bits[]={0x00,0x00,0x1f,0x3f,0x3f,0x3f,0x3e,0x3c};

static SHAPETYPE corner3_bits[]={0x00,0x00,0xf8,0xfc,0xfc,0xfc,0x7c,0x3c};

static SHAPETYPE corner2_bits[]={0x3c,0x7c,0xfc,0xfc,0xfc,0xf8,0x00,0x00};

static SHAPETYPE specwall_bits[]={0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00};

static SHAPETYPE bonuspoint_bits[]={0x00,0x00,0x24,0x18,0x18,0x24,0x00,0x00};

static SHAPETYPE bonuslife_bits[]={0x00,0x00,0x1c,0x38,0x38,0x1c,0x00,0x00};

static SHAPETYPE e0_bits[]={0x00,0x00,0xf8,0xfc,0xfc,0xf8,0x00,0x00};

static SHAPETYPE e90_bits[]={0x00,0x00,0x18,0x3c,0x3c,0x3c,0x3c,0x3c};

static SHAPETYPE e180_bits[]={0x00,0x00,0x1f,0x3f,0x3f,0x1f,0x00,0x00};

static SHAPETYPE e270_bits[]={0x3c,0x3c,0x3c,0x3c,0x3c,0x18,0x00,0x00};

static SHAPETYPE t0_bits[]={0x00,0x00,0xff,0xff,0xff,0xff,0x7e,0x3c};

static SHAPETYPE t90_bits[]={0x3c,0x3e,0x3f,0x3f,0x3f,0x3f,0x3e,0x3c};

static SHAPETYPE t180_bits[]={0x3c,0x7e,0xff,0xff,0xff,0xff,0x00,0x00};

static SHAPETYPE t270_bits[]={0x3c,0x7c,0xfc,0xfc,0xfc,0xfc,0x7c,0x3c};

#elif defined VTX			//vt??? unix only
static SHAPETYPE pacman0_bits[]={'P'};    
static SHAPETYPE pacmanleft_bits[]={'P'}; 
static SHAPETYPE pacmanright_bits[]={'P'};
static SHAPETYPE pacmanup_bits[]=   {'P'};
static SHAPETYPE pacmandown_bits[]= {'P'};

static SHAPETYPE vertwall_bits[]={'|'};

static SHAPETYPE horiwall_bits[]={'-'};

static SHAPETYPE blank_bits[]={' '};

static SHAPETYPE cross_bits[]={' '};

static SHAPETYPE food_bits[]={'.'};

static SHAPETYPE superfood_bits[]={'o'};

static SHAPETYPE ghost_bits[]={'G'};

static SHAPETYPE corner2_bits[]={'X'};

static SHAPETYPE corner3_bits[]={'X'};

static SHAPETYPE corner4_bits[]={'X'};

static SHAPETYPE corner1_bits[]={'X'};

static SHAPETYPE specwall_bits[]={'_'};

static SHAPETYPE bonuspoint_bits[]={'?'};

static SHAPETYPE bonuslife_bits[]={'p'};

static SHAPETYPE e180_bits[]={'-'};

static SHAPETYPE e90_bits[]={'|'};

static SHAPETYPE e0_bits[]={'-'};

static SHAPETYPE e270_bits[]={'|'};

static SHAPETYPE t0_bits[]={'-'};

static SHAPETYPE t270_bits[]={'|'};

static SHAPETYPE t180_bits[]={'-'};

static SHAPETYPE t90_bits[]={'|'};
#endif