1 /*
2  *   XFrisk - The classic board game for X
3  *   Copyright (C) 1993-1999 Elan Feingold (elan@aetherworks.com)
4  *
5  *   This program is free software; you can redistribute it and/or modify
6  *   it under the terms of the GNU General Public License as published by
7  *   the Free Software Foundation; either version 2 of the License, or
8  *   (at your option) any later version.
9  *
10  *   This program is distributed in the hope that it will be useful,
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *   GNU General Public License for more details.
14  *
15  *   You should have received a copy of the GNU General Public License
16  *   along with this program; if not, write to the Free Software
17  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  *
19  *   $Id: aiStubs.c,v 1.4 1999/11/13 21:58:30 morphy Exp $
20  */
21 
22 #include <stdio.h>
23 
24 #include "riskgame.h"
25 #include "game.h"
26 #include "types.h"
27 #include "utils.h"
28 
29 extern Int32 iCurrentPlayer;
30 
UTIL_PopupDialog(CString strTitle,CString strQuestion,Int32 iNumOptions,CString strOption1,CString strOption2,CString strOption3)31 Int32 UTIL_PopupDialog(CString strTitle, CString strQuestion,
32 		       Int32 iNumOptions, CString strOption1,
33 		       CString strOption2, CString strOption3)
34 {
35   UNUSED(iNumOptions);
36   UNUSED(strOption1);
37   UNUSED(strOption2);
38   UNUSED(strOption3);
39 
40 #ifdef ENGLISH
41   printf("AI: [%s] `%s'\n", strTitle, strQuestion);
42 #endif
43 #ifdef FRENCH
44   printf("IA: [%s] `%s'\n", strTitle, strQuestion);
45 #endif
46   return 0;
47 }
48 
UTIL_ServerEnterState(Int32 iNewState)49 void UTIL_ServerEnterState(Int32 iNewState)
50 {
51   UNUSED(iNewState);
52 }
53 
UTIL_DisplayComment(CString strComment)54 void UTIL_DisplayComment(CString strComment)
55 {
56   UNUSED(strComment);
57 /*
58 #ifdef ENGLISH
59   printf("AI: `%s'\n", strComment);
60 #endif
61 #ifdef FRENCH
62   printf("IA: `%s'\n", strComment);
63 #endif
64 */}
65 
UTIL_DisplayError(CString strError)66 void UTIL_DisplayError(CString strError)
67 {
68   UNUSED(strError);
69 /*
70 #ifdef ENGLISH
71   printf("AI: `%s'\n", strError);
72 #endif
73 #ifdef FRENCH
74   printf("IA: `%s'\n", strError);
75 #endif
76 */}
77 
UTIL_DarkenCountry(Int32 iCountry)78 void   UTIL_DarkenCountry(Int32 iCountry) {
79   UNUSED(iCountry);
80 }
UTIL_LightCountry(Int32 iCountry)81 void   UTIL_LightCountry(Int32 iCountry) {
82   UNUSED(iCountry);
83 }
UTIL_DisplayActionCString(Int32 iState,Int32 iPlayer)84 void   UTIL_DisplayActionCString(Int32 iState, Int32 iPlayer) {
85   UNUSED(iState);
86   UNUSED(iPlayer);
87 }
UTIL_ExitProgram(Int32 iExitValue)88 void   UTIL_ExitProgram(Int32 iExitValue) { exit(iExitValue); }
REG_PopupDialog(void)89 void   REG_PopupDialog(void) {}
COLOR_SetWorldColors()90 void   COLOR_SetWorldColors() {}
COLOR_DieToColor(Int32 iDie)91 Int32  COLOR_DieToColor(Int32 iDie) {
92   UNUSED(iDie);
93   return 0;
94 }
COLOR_PlayerToColor(Int32 iPlayer)95 Int32  COLOR_PlayerToColor(Int32 iPlayer) {
96   UNUSED(iPlayer);
97   return 0;
98 }
COLOR_CopyColor(Int32 iSrc,Int32 iDst)99 void   COLOR_CopyColor(Int32 iSrc, Int32 iDst) {
100   UNUSED(iSrc);
101   UNUSED(iDst);
102 }
DICE_Refresh(void)103 void   DICE_Refresh(void) {}
DICE_Hide(void)104 void   DICE_Hide(void) {}
105 
106