4 * Wrapper functions which call analogous functions in rawdsp.c
5 * or cursesdsp.c depending on the interface.
7 * ----------------------------------------------------------------------
8 * Copyright (c) 1993, 1994, 1995 Matthias Mutz
9 * Copyright (c) 1999 Michael Vanier and the Free Software Foundation
11 * GNU SHOGI is based on GNU CHESS
13 * Copyright (c) 1988, 1989, 1990 John Stanback
14 * Copyright (c) 1992 Free Software Foundation
16 * This file is part of GNU SHOGI.
18 * GNU Shogi is free software; you can redistribute it and/or modify it
19 * under the terms of the GNU General Public License as published by the
20 * Free Software Foundation; either version 1, or (at your option) any
23 * GNU Shogi is distributed in the hope that it will be useful, but WITHOUT
24 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
25 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
28 * You should have received a copy of the GNU General Public License along
29 * with GNU Shogi; see the file COPYING. If not, write to the Free
30 * Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
31 * ----------------------------------------------------------------------
36 #include "dspwrappers.h"
38 #include "cursesdsp.h"
42 ChangeAlphaWindow(void)
48 Raw_ChangeAlphaWindow();
52 Curses_ChangeAlphaWindow();
59 ChangeBetaWindow(void)
65 Raw_ChangeBetaWindow();
69 Curses_ChangeBetaWindow();
82 Raw_ChangeHashDepth();
86 Curses_ChangeHashDepth();
93 ChangeSearchDepth(void)
99 Raw_ChangeSearchDepth();
103 Curses_ChangeSearchDepth();
112 switch (display_type
)
120 Curses_ChangeXwindow();
129 switch (display_type
)
137 Curses_ClearScreen();
146 switch (display_type
)
161 DoTable(short table
[NO_SQUARES
])
163 switch (display_type
)
171 Curses_DoTable(table
);
180 switch (display_type
)
197 switch (display_type
)
214 switch (display_type
)
231 switch (display_type
)
248 switch (display_type
)
265 switch (display_type
)
273 Curses_SetContempt();
280 SearchStartStuff(short side
)
282 switch (display_type
)
286 Raw_SearchStartStuff(side
);
290 Curses_SearchStartStuff(side
);
297 SelectLevel(char *sx
)
299 switch (display_type
)
307 Curses_SelectLevel(sx
);
314 ShowCurrentMove(short pnt
, short f
, short t
)
316 switch (display_type
)
320 Raw_ShowCurrentMove(pnt
, f
, t
);
324 Curses_ShowCurrentMove(pnt
, f
, t
);
333 switch (display_type
)
341 Curses_ShowDepth(ch
);
350 switch (display_type
)
358 Curses_ShowGameType();
365 ShowLine(unsigned short *bstline
)
367 switch (display_type
)
371 Raw_ShowLine(bstline
);
375 Curses_ShowLine(bstline
);
384 switch (display_type
)
392 Curses_ShowMessage(s
);
399 ShowPatternCount(short side
, short n
)
401 switch (display_type
)
405 Raw_ShowPatternCount(side
, n
);
409 Curses_ShowPatternCount(side
, n
);
416 ShowPostnValue(short sq
)
418 switch (display_type
)
422 Raw_ShowPostnValue(sq
);
426 Curses_ShowPostnValue(sq
);
433 ShowPostnValues(void)
435 switch (display_type
)
439 Raw_ShowPostnValues();
443 Curses_ShowPostnValues();
450 ShowResponseTime(void)
452 switch (display_type
)
456 Raw_ShowResponseTime();
460 Curses_ShowResponseTime();
467 ShowResults(short score
, unsigned short *bstline
, char ch
)
469 switch (display_type
)
473 Raw_ShowResults(score
, bstline
, ch
);
477 Curses_ShowResults(score
, bstline
, ch
);
486 switch (display_type
)
490 Raw_ShowSidetoMove();
494 Curses_ShowSidetoMove();
503 switch (display_type
)
518 TerminateSearch(int sig
)
520 switch (display_type
)
524 Raw_TerminateSearch(sig
);
528 Curses_TerminateSearch(sig
);
535 UpdateDisplay(short f
, short t
, short redraw
, short isspec
)
537 switch (display_type
)
541 Raw_UpdateDisplay(f
, t
, redraw
, isspec
);
545 Curses_UpdateDisplay(f
, t
, redraw
, isspec
);
554 switch (display_type
)