1 /*
2  * Biloba
3  * Copyright (C) 2004-2008 Guillaume Demougeot, Colin Leroy
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19 
20 #ifndef __MSG_H__
21 #define __MSG_H__
22 
23 typedef enum {
24 	M_ROUND = 0,
25 	M_DRAW,
26 	M_WINS,
27 	M_PLAYER_WINS,
28 	M_PLAYER,
29 	M_WAITING,
30 	M_JOINED,
31 	M_NEWGAME,
32 	M_ENOCONN,
33 	M_PLAYER_LEAVES,
34 	M_LEAVES,
35 	M_YOUR_TURN,
36 	M_OFFICIAL_SERVER,
37 	M_LOCAL_SERVER,
38 	M_SAVED_TO,
39 	M_SAVE_FAIL,
40 	M_NUM_MSGS
41 } MsgId;
42 
43 const char *get_msg(MsgId id);
44 
45 #endif
46