| 1 | /* |
| 2 | * Copyright (C) 1998,1999,2000 Ross Combs ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | |
| 20 | /*****/ |
| 21 | #ifndef JUST_NEED_TYPES |
| 22 | #ifndef INCLUDED_GAME_CONV_PROTOS |
| 23 | #define INCLUDED_GAME_CONV_PROTOS |
| 24 | |
| 25 | #define JUST_NEED_TYPES |
| 26 | #include "game.h" |
| 27 | #undef JUST_NEED_TYPES |
| 28 | |
| 29 | namespace pvpgn |
| 30 | { |
| 31 | |
| 32 | namespace bnetd |
| 33 | { |
| 34 | |
| 35 | extern t_game_type bngreqtype_to_gtype(t_clienttag clienttag, unsigned short bngtype); |
| 36 | extern t_game_type bngtype_to_gtype(t_clienttag clienttag, unsigned short bngtype); |
| 37 | extern unsigned short gtype_to_bngtype(t_game_type gtype); |
| 38 | extern t_game_option bngoption_to_goption(t_clienttag clienttag, t_game_type gtype, unsigned short bngoption); |
| 39 | extern t_game_result bngresult_to_gresult(unsigned int bngresult); |
| 40 | extern t_game_maptype bngmaptype_to_gmaptype(unsigned int bngmaptype); |
| 41 | extern t_game_tileset bngtileset_to_gtileset(unsigned int bngtileset); |
| 42 | extern t_game_speed bngspeed_to_gspeed(unsigned int bngspeed); |
| 43 | extern t_game_difficulty bngdifficulty_to_gdifficulty(unsigned int bngdifficulty); |
| 44 | extern int game_parse_info(t_game * game, char const * gameinfo); |
| 45 | |
| 46 | } |
| 47 | |
| 48 | } |
| 49 | |
| 50 | #endif |
| 51 | #endif |