1 // Copyright (C) 2011, 2014, 2015 Ben Asselstine 2 // 3 // This program is free software; you can redistribute it and/or modify 4 // it under the terms of the GNU General Public License as published by 5 // the Free Software Foundation; either version 3 of the License, or 6 // (at your option) any later version. 7 // 8 // This program is distributed in the hope that it will be useful, 9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // GNU Library General Public License for more details. 12 // 13 // You should have received a copy of the GNU General Public License 14 // along with this program; if not, write to the Free Software 15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16 // 02110-1301, USA. 17 18 #pragma once 19 #ifndef NETWORK_GHS_COMMON_H 20 #define NETWORK_GHS_COMMON_H 21 22 #include <config.h> 23 24 enum GhsMessageType 25 { 26 GHS_MESSAGE_HOST_NEW_GAME = 1, //sent from client (lw host) 27 GHS_MESSAGE_AWAITING_MAP = 2, //from server 28 GHS_MESSAGE_UNHOST_GAME = 3, //from client (lw host) 29 GHS_MESSAGE_GAME_UNHOSTED = 4, //from server 30 GHS_MESSAGE_COULD_NOT_HOST_GAME = 5, //from server 31 GHS_MESSAGE_COULD_NOT_UNHOST_GAME = 6, //from server 32 GHS_MESSAGE_REQUEST_RELOAD = 7, //from client 33 GHS_MESSAGE_RELOADED = 8, //from server 34 GHS_MESSAGE_COULD_NOT_RELOAD = 9, //from server 35 GHS_MESSAGE_GAME_LIST = 10, //from server 36 GHS_MESSAGE_COULD_NOT_GET_GAME_LIST = 11, //from server 37 GHS_MESSAGE_REQUEST_GAME_LIST = 12, //from client (lw host or client) 38 GHS_MESSAGE_SENDING_MAP = 13, //from client 39 GHS_MESSAGE_GAME_HOSTED = 14, //from server 40 GHS_MESSAGE_COULD_NOT_READ_MAP = 15, //from server 41 GHS_MESSAGE_COULD_NOT_START_GAME = 16, //from server 42 GHS_MESSAGE_REQUEST_TERMINATION = 17 //from client 43 }; 44 45 #endif 46