/* * Copyright (C) 1999 Peter Amstutz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of *the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA */ #ifndef _CLIHANDLERS_H_ #define _CLIHANDLERS_H_ #include "text.h" extern ScrollWindow_txt *ch_scrlwin; extern ScrollWindow_txt *ch_ingmmsg; extern ScrollWindow_txt *ch_postgmsg; extern InputBox_txt *ch_inpbox; extern InputBox_txt *ch_postinpbox; extern InputBox_txt *ch_ingameinpbox; extern char ch_weaponbuylock; extern char ch_gotallterrain; extern int curShooterId; void chSetGameMode(Relay_rl * rl, int id, char *pkt, int pktlen); void chSetGameType(Relay_rl* rl, int id, char *pkt, int pktlen); void chGetMyID(Relay_rl * rl, int id, char *pkt, int pktlen); void chNewPlayer(Relay_rl * rl, int id, char *pkt, int pktlen); void chUpdateTerrain(Relay_rl * rl, int id, char *pkt, int pktlen); void chNewTerrain(Relay_rl * rl, int id, char *pkt, int pktlen); void chMessage(Relay_rl * rl, int id, char *pkt, int pktlen); void chSetTank(Relay_rl * rl, int id, char *pkt, int pktlen); void chShotFired(Relay_rl * rl, int id, char *pkt, int pktlen); void chQuit(Relay_rl * rl, int id); void chSetName(Relay_rl * rl, int id, char *pkt, int pktlen); void chSetReadiness(Relay_rl * rl, int id, char *pkt, int pktlen); void chRemovePlayer(Relay_rl * rl, int id, char *pkt, int pktlen); void chActivateShots(Relay_rl * rl, int id, char *pkt, int pktlen); void chBuyWeapon(Relay_rl * rl, int id, char *pkt, int pktlen); void chSellWeapon(Relay_rl * rl, int id, char *pkt, int pktlen); void chSetMoney(Relay_rl * rl, int id, char *pkt, int pktlen); void chCheckProtocolVersion(Relay_rl * rl, int id, char *pkt, int pktlen); void chSetWindSpeed(Relay_rl * rl, int id, char *pkt, int pktlen); void chUpdateScore(Relay_rl * rl, int id, char *pkt, int pktlen); void chUpdateRound(Relay_rl * rl, int id, char *pkt, int pktlen); void chUpdateTotalRounds(Relay_rl * rl, int id, char *pkt, int pktlen); void chSetWallType(Relay_rl * rl, int id, char *pkt, int pktlen); void chUpdateFireInfo(Relay_rl* rl, int id, char *pkt, int pktlen); void chTankColor(Relay_rl* rl, int id, char *pkt, int pktlen); #endif