Bump version to "1.4.1+".
[gnushogi.git] / xshogi / bitmaps.h
1 /*
2  * FILE: bitmaps.h
3  *
4  *     Piece bitmaps for xshogi.
5  *
6  * ------------------------------------------------------------------------
7  * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess.
8  *
9  * Original authors:                                Dan Sears, Chris Sears
10  * Enhancements (Version 2.0 and following):        Tim Mann
11  * Modifications to XShogi (Version 1.0):           Matthias Mutz
12  * Enhancements to XShogi (Version 1.1):            Matthias Mutz
13  * Modified implementation of ISS mode for XShogi:  Matthias Mutz
14  * Current maintainer:                              Michael C. Vanier
15  *
16  * XShogi borrows some of its piece bitmaps from CRANES Shogi.
17  *
18  * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
19  * Enhancements Copyright 1992 Free Software Foundation, Inc.
20  * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz
21  * Copyright (c) 1999 Michael Vanier and the Free Software Foundation
22  *
23  * The following terms apply to Digital Equipment Corporation's copyright
24  * interest in XBoard:
25  * ------------------------------------------------------------------------
26  * All Rights Reserved
27  *
28  * Permission to use, copy, modify, and distribute this software and its
29  * documentation for any purpose and without fee is hereby granted,
30  * provided that the above copyright notice appear in all copies and that
31  * both that copyright notice and this permission notice appear in
32  * supporting documentation, and that the name of Digital not be
33  * used in advertising or publicity pertaining to distribution of the
34  * software without specific, written prior permission.
35  *
36  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
37  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
38  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
39  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
40  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
41  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
42  * SOFTWARE.
43  * ------------------------------------------------------------------------
44  *
45  * This file is part of GNU shogi.
46  *
47  * GNU shogi is free software; you can redistribute it and/or modify
48  * it under the terms of the GNU General Public License as published by
49  * the Free Software Foundation.
50  *
51  * GNU shogi is distributed in the hope that it will be useful,
52  * but WITHOUT ANY WARRANTY; without even the implied warranty of
53  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
54  * GNU General Public License for more details.
55  *
56  * You should have received a copy of the GNU General Public License
57  * along with GNU shogi; see the file COPYING.  If not, write to
58  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
59  *
60  * ------------------------------------------------------------------------
61  *
62  */
63
64 #ifndef _BITMAPS_H_
65 #define _BITMAPS_H_
66
67 /*
68  * Naming conventions:
69  *
70  * R  -- reverse orientation
71  * P  -- promoted piece
72  * W  -- westernized bitmap
73  * _l -- large-sized piece  (64x64)
74  * _m -- medium-sized piece (49x49)
75  * (default name: small-sized piece) (32x32)
76  *
77  */
78
79 #include "eastern_bitmaps/icon.xbm"
80
81 #include "eastern_bitmaps/bigsolid.xbm"
82 #include "eastern_bitmaps/smallsolid.xbm"
83 #include "eastern_bitmaps/bigsolidR.xbm"
84 #include "eastern_bitmaps/smallsolidR.xbm"
85
86 /*** Westernized piece bitmaps. ***/
87
88 /*
89  * Thanks to Bernhard Maerz for the new westernized bitmaps.
90  * These are only available in the large size.
91  */
92
93 #include "western_bitmaps/kingW.xbm"
94 #include "western_bitmaps/rookW.xbm"
95 #include "western_bitmaps/rookPW.xbm"
96 #include "western_bitmaps/bishopW.xbm"
97 #include "western_bitmaps/bishopPW.xbm"
98 #include "western_bitmaps/goldW.xbm"
99 #include "western_bitmaps/silverW.xbm"
100 #include "western_bitmaps/silverPW.xbm"
101 #include "western_bitmaps/knightW.xbm"
102 #include "western_bitmaps/knightPW.xbm"
103 #include "western_bitmaps/lanceW.xbm"
104 #include "western_bitmaps/lancePW.xbm"
105 #include "western_bitmaps/pawnW.xbm"
106 #include "western_bitmaps/pawnPW.xbm"
107
108 #include "western_bitmaps/kingRW.xbm"
109 #include "western_bitmaps/rookRW.xbm"
110 #include "western_bitmaps/rookPRW.xbm"
111 #include "western_bitmaps/bishopRW.xbm"
112 #include "western_bitmaps/bishopPRW.xbm"
113 #include "western_bitmaps/goldRW.xbm"
114 #include "western_bitmaps/silverRW.xbm"
115 #include "western_bitmaps/silverPRW.xbm"
116 #include "western_bitmaps/knightRW.xbm"
117 #include "western_bitmaps/knightPRW.xbm"
118 #include "western_bitmaps/lanceRW.xbm"
119 #include "western_bitmaps/lancePRW.xbm"
120 #include "western_bitmaps/pawnRW.xbm"
121 #include "western_bitmaps/pawnPRW.xbm"
122
123
124 /*** Eastern piece bitmaps. ***/
125
126 /* Small sized bitmaps. */
127
128 #include "eastern_bitmaps/king.xbm"
129 #include "eastern_bitmaps/rook.xbm"
130 #include "eastern_bitmaps/bishop.xbm"
131 #include "eastern_bitmaps/gold.xbm"
132 #include "eastern_bitmaps/silver.xbm"
133 #include "eastern_bitmaps/silverP.xbm"
134 #include "eastern_bitmaps/knight.xbm"
135 #include "eastern_bitmaps/knightP.xbm"
136 #include "eastern_bitmaps/lance.xbm"
137 #include "eastern_bitmaps/lanceP.xbm"
138 #include "eastern_bitmaps/pawn.xbm"
139 #include "eastern_bitmaps/pawnP.xbm"
140
141 #include "eastern_bitmaps/kingR.xbm"
142 #include "eastern_bitmaps/rookR.xbm"
143 #include "eastern_bitmaps/bishopR.xbm"
144 #include "eastern_bitmaps/goldR.xbm"
145 #include "eastern_bitmaps/silverR.xbm"
146 #include "eastern_bitmaps/silverPR.xbm"
147 #include "eastern_bitmaps/knightR.xbm"
148 #include "eastern_bitmaps/knightPR.xbm"
149 #include "eastern_bitmaps/lanceR.xbm"
150 #include "eastern_bitmaps/lancePR.xbm"
151 #include "eastern_bitmaps/pawnR.xbm"
152 #include "eastern_bitmaps/pawnPR.xbm"
153
154 /*
155  * Alternative top bitmaps for eastern pieces (promoted rook and bishop
156  * only).  Thanks to Ken'ichi Nakayama for providing these bitmaps.
157  * Similar comments apply for medium and large-sized bitmaps.
158  */
159
160 #if defined(TOP_PART_BITMAPS)
161
162 #include "eastern_bitmaps/rookP.top.xbm"
163 #include "eastern_bitmaps/bishopP.top.xbm"
164
165 #include "eastern_bitmaps/rookPR.top.xbm"
166 #include "eastern_bitmaps/bishopPR.top.xbm"
167
168 #else   /* !TOP_PART_BITMAPS */
169
170 #include "eastern_bitmaps/rookP.xbm"
171 #include "eastern_bitmaps/bishopP.xbm"
172
173 #include "eastern_bitmaps/rookPR.xbm"
174 #include "eastern_bitmaps/bishopPR.xbm"
175
176 #endif  /* TOP_PART_BITMAPS  */
177
178
179 /*** Medium-sized bitmaps. ***/
180
181 #include "eastern_bitmaps/bigsolid_m.xbm"
182 #include "eastern_bitmaps/smallsolid_m.xbm"
183 #include "eastern_bitmaps/bigsolidR_m.xbm"
184 #include "eastern_bitmaps/smallsolidR_m.xbm"
185
186 #include "eastern_bitmaps/king_m.xbm"
187 #include "eastern_bitmaps/rook_m.xbm"
188 #include "eastern_bitmaps/bishop_m.xbm"
189 #include "eastern_bitmaps/gold_m.xbm"
190 #include "eastern_bitmaps/silver_m.xbm"
191 #include "eastern_bitmaps/silverP_m.xbm"
192 #include "eastern_bitmaps/knight_m.xbm"
193 #include "eastern_bitmaps/knightP_m.xbm"
194 #include "eastern_bitmaps/lance_m.xbm"
195 #include "eastern_bitmaps/lanceP_m.xbm"
196 #include "eastern_bitmaps/pawn_m.xbm"
197 #include "eastern_bitmaps/pawnP_m.xbm"
198
199 #include "eastern_bitmaps/kingR_m.xbm"
200 #include "eastern_bitmaps/rookR_m.xbm"
201 #include "eastern_bitmaps/bishopR_m.xbm"
202 #include "eastern_bitmaps/goldR_m.xbm"
203 #include "eastern_bitmaps/silverR_m.xbm"
204 #include "eastern_bitmaps/silverPR_m.xbm"
205 #include "eastern_bitmaps/knightR_m.xbm"
206 #include "eastern_bitmaps/knightPR_m.xbm"
207 #include "eastern_bitmaps/lanceR_m.xbm"
208 #include "eastern_bitmaps/lancePR_m.xbm"
209 #include "eastern_bitmaps/pawnR_m.xbm"
210 #include "eastern_bitmaps/pawnPR_m.xbm"
211
212 #if defined(TOP_PART_BITMAPS)
213
214 #include "eastern_bitmaps/rookP_m.top.xbm"
215 #include "eastern_bitmaps/bishopP_m.top.xbm"
216
217 #include "eastern_bitmaps/rookPR_m.top.xbm"
218 #include "eastern_bitmaps/bishopPR_m.top.xbm"
219
220 #else   /* !TOP_PART_BITMAPS */
221
222 #include "eastern_bitmaps/rookP_m.xbm"
223 #include "eastern_bitmaps/bishopP_m.xbm"
224
225 #include "eastern_bitmaps/rookPR_m.xbm"
226 #include "eastern_bitmaps/bishopPR_m.xbm"
227
228 #endif  /* TOP_PART_BITMAPS  */
229
230
231 /*** Large bitmaps. ***/
232
233 /*
234  * The new large eastern bitmaps were kindly provided by Bernhard Maerz.
235  * Thanks Bernhard!
236  */
237
238 #include "eastern_bitmaps/bigsolid_l.xbm"
239 #include "eastern_bitmaps/smallsolid_l.xbm"
240 #include "eastern_bitmaps/bigsolidR_l.xbm"
241 #include "eastern_bitmaps/smallsolidR_l.xbm"
242
243 #include "eastern_bitmaps/king_l.xbm"
244 #include "eastern_bitmaps/rook_l.xbm"
245 #include "eastern_bitmaps/bishop_l.xbm"
246 #include "eastern_bitmaps/gold_l.xbm"
247 #include "eastern_bitmaps/silver_l.xbm"
248 #include "eastern_bitmaps/silverP_l.xbm"
249 #include "eastern_bitmaps/knight_l.xbm"
250 #include "eastern_bitmaps/knightP_l.xbm"
251 #include "eastern_bitmaps/lance_l.xbm"
252 #include "eastern_bitmaps/lanceP_l.xbm"
253 #include "eastern_bitmaps/pawn_l.xbm"
254 #include "eastern_bitmaps/pawnP_l.xbm"
255
256 #include "eastern_bitmaps/kingR_l.xbm"
257 #include "eastern_bitmaps/rookR_l.xbm"
258 #include "eastern_bitmaps/bishopR_l.xbm"
259 #include "eastern_bitmaps/goldR_l.xbm"
260 #include "eastern_bitmaps/silverR_l.xbm"
261 #include "eastern_bitmaps/silverPR_l.xbm"
262 #include "eastern_bitmaps/knightR_l.xbm"
263 #include "eastern_bitmaps/knightPR_l.xbm"
264 #include "eastern_bitmaps/lanceR_l.xbm"
265 #include "eastern_bitmaps/lancePR_l.xbm"
266 #include "eastern_bitmaps/pawnR_l.xbm"
267 #include "eastern_bitmaps/pawnPR_l.xbm"
268
269 #if defined(TOP_PART_BITMAPS)
270
271 #include "eastern_bitmaps/rookP_l.top.xbm"
272 #include "eastern_bitmaps/bishopP_l.top.xbm"
273
274 #include "eastern_bitmaps/rookPR_l.top.xbm"
275 #include "eastern_bitmaps/bishopPR_l.top.xbm"
276
277 #else   /* !TOP_PART_BITMAPS */
278
279 #include "eastern_bitmaps/rookP_l.xbm"
280 #include "eastern_bitmaps/bishopP_l.xbm"
281
282 #include "eastern_bitmaps/rookPR_l.xbm"
283 #include "eastern_bitmaps/bishopPR_l.xbm"
284
285 #endif  /* TOP_PART_BITMAPS  */
286
287 #endif /* _BITMAPS_H_ */
288