/* This file is part of Warzone 2100. Copyright (C) 1999-2004 Eidos Interactive Copyright (C) 2005-2007 Warzone Resurrection Project Warzone 2100 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. Warzone 2100 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 Warzone 2100; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* *multigifts. h * * multiplayer game, gifts and deathmatch relevant funcs. */ extern void requestAlliance (UBYTE from ,UBYTE to,BOOL prop,BOOL allowAudio); extern void breakAlliance (UBYTE p1, UBYTE p2,BOOL prop,BOOL allowAudio); extern void formAlliance (UBYTE p1, UBYTE p2,BOOL prop,BOOL allowAudio); extern void sendAlliance (UBYTE from, UBYTE to, UBYTE state,SDWORD value); extern BOOL recvAlliance (NETMSG *pMsg,BOOL allowAudio); extern BOOL sendGift (UDWORD type,UDWORD to); extern BOOL recvGift (NETMSG *pMsg); extern VOID technologyGiveAway (STRUCTURE *pS); extern VOID recvMultiPlayerRandomArtifacts (NETMSG *pMsg); extern VOID addMultiPlayerRandomArtifacts (UDWORD quantity,SDWORD type); extern VOID processMultiPlayerArtifacts (VOID); extern VOID giftArtifact (UDWORD owner,UDWORD x,UDWORD y); // deathmatch stuff extern BOOL addOilDrum (UDWORD count); extern VOID giftPower (UDWORD from,UDWORD to,BOOL send); extern VOID giftRadar (UDWORD from, UDWORD to,BOOL send); //extern BOOL addDMatchDroid (UDWORD count); //extern BOOL foundDMatchDroid (UDWORD player,UDWORD x,UDWORD y); //extern BOOL deathmatchCheck (VOID); //extern BOOL dMatchWinner (UDWORD winplayer,BOOL bcast); //extern BOOL recvdMatchWinner (NETMSG *pMsg); #define RADAR_GIFT 1 #define DROID_GIFT 2 #define RESEARCH_GIFT 3 #define POWER_GIFT 4 #define STRUCTURE_GIFT 5