4 * Wrapper functions which call analogous functions in rawdsp.c
5 * or cursesdsp.c depending on the interface.
7 * ----------------------------------------------------------------------
9 * Copyright (c) 2012 Free Software Foundation
11 * GNU SHOGI is based on GNU CHESS
13 * This file is part of GNU SHOGI.
15 * GNU Shogi is free software; you can redistribute it and/or modify it
16 * under the terms of the GNU General Public License as published by the
17 * Free Software Foundation; either version 3 of the License,
18 * or (at your option) any later version.
20 * GNU Shogi is distributed in the hope that it will be useful, but WITHOUT
21 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25 * You should have received a copy of the GNU General Public License along
26 * with GNU Shogi; see the file COPYING. If not, see
27 * <http://www.gnu.org/licenses/>.
28 * ----------------------------------------------------------------------
33 #include "dspwrappers.h"
35 #include "cursesdsp.h"
39 ChangeAlphaWindow(void)
45 Raw_ChangeAlphaWindow();
49 Curses_ChangeAlphaWindow();
56 ChangeBetaWindow(void)
62 Raw_ChangeBetaWindow();
66 Curses_ChangeBetaWindow();
79 Raw_ChangeHashDepth();
83 Curses_ChangeHashDepth();
90 ChangeSearchDepth(void)
96 Raw_ChangeSearchDepth();
100 Curses_ChangeSearchDepth();
109 switch (display_type)
117 Curses_ChangeXwindow();
126 switch (display_type)
134 Curses_ClearScreen();
143 switch (display_type)
158 DoTable(short table[NO_SQUARES])
160 switch (display_type)
168 Curses_DoTable(table);
177 switch (display_type)
194 switch (display_type)
211 switch (display_type)
228 switch (display_type)
245 switch (display_type)
262 switch (display_type)
270 Curses_SetContempt();
277 SearchStartStuff(short side)
279 switch (display_type)
283 Raw_SearchStartStuff(side);
287 Curses_SearchStartStuff(side);
294 SelectLevel(char *sx)
296 switch (display_type)
304 Curses_SelectLevel(sx);
311 ShowCurrentMove(short pnt, short f, short t)
313 switch (display_type)
317 Raw_ShowCurrentMove(pnt, f, t);
321 Curses_ShowCurrentMove(pnt, f, t);
330 switch (display_type)
338 Curses_ShowDepth(ch);
347 switch (display_type)
355 Curses_ShowGameType();
362 ShowLine(unsigned short *bstline)
364 switch (display_type)
368 Raw_ShowLine(bstline);
372 Curses_ShowLine(bstline);
381 switch (display_type)
389 Curses_ShowMessage(s);
396 ShowPatternCount(short side, short n)
398 switch (display_type)
402 Raw_ShowPatternCount(side, n);
406 Curses_ShowPatternCount(side, n);
413 ShowPostnValue(short sq)
415 switch (display_type)
419 Raw_ShowPostnValue(sq);
423 Curses_ShowPostnValue(sq);
430 ShowPostnValues(void)
432 switch (display_type)
436 Raw_ShowPostnValues();
440 Curses_ShowPostnValues();
447 ShowResponseTime(void)
449 switch (display_type)
453 Raw_ShowResponseTime();
457 Curses_ShowResponseTime();
464 ShowResults(short score, unsigned short *bstline, char ch)
466 switch (display_type)
470 Raw_ShowResults(score, bstline, ch);
474 Curses_ShowResults(score, bstline, ch);
483 switch (display_type)
487 Raw_ShowSidetoMove();
491 Curses_ShowSidetoMove();
500 switch (display_type)
515 TerminateSearch(int sig)
517 switch (display_type)
521 Raw_TerminateSearch(sig);
525 Curses_TerminateSearch(sig);
532 UpdateDisplay(short f, short t, short redraw, short isspec)
534 switch (display_type)
538 Raw_UpdateDisplay(f, t, redraw, isspec);
542 Curses_UpdateDisplay(f, t, redraw, isspec);
551 switch (display_type)