00001 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 5 -*- */ 00002 00003 /* 00004 * Combination of a first person action and a real time strategy battle game. 00005 */ 00006 00007 /* 00008 * NetFunc.h 00009 * MetalWarriors 00010 * $Revision: 1.4 $ 00011 * 00012 * Created by Daniel Aarno on Sun, Mar 13, 2005b 00013 * Copyright (c) 2003-2005 Daniel Aarno and Erik Ytterberg 00014 * All rights reserved. 00015 * 00016 * This program is free software; you can redistribute it and/or modify 00017 * it under the terms of the GNU General Public License as published by 00018 * the Free Software Foundation; either version 2 of the License, or 00019 * (at your option) any later version. 00020 * 00021 * This program is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with this program; if not, write to the Free Software 00028 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00029 */ 00030 00031 #ifndef _NETFUNC_ 00032 #define _NETFUNC_ 00033 00034 #include "Sprite.h" 00035 #include <string> 00036 00037 class VehicleSprite; 00038 00039 void CreateSprite(const std::string &type, const Sprite::uri_t &uri); 00040 void ParseNetworkTraffic(); 00041 void SyncRandomSeed(); 00042 void DistributeURIs(); 00043 void SyncStartPlayerCreate(int ntanks); 00044 void SyncStopPlayerCreate(); 00045 VehicleSprite* GetNextVehicle(int plyId); 00046 void SendMissionName(std::string mname); 00047 std::string RecvMissionName(void); 00048 00049 #endif
1.4.7