____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"00001 // ____ _ __ 00002 // / __ )____ _____ | | / /___ ___________ 00003 // / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/ 00004 // / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ ) 00005 // /_____/\____/____/ |__/|__/\__,_/_/ /____/ 00006 // 00007 // A futuristic real-time strategy game. 00008 // This file is part of Bos Wars. 00009 // 00011 // 00012 // (c) Copyright 1998-2007 by Lutz Sammer and Jimmy Salmon 00013 // 00014 // This program is free software; you can redistribute it and/or modify 00015 // it under the terms of the GNU General Public License as published by 00016 // the Free Software Foundation; only version 2 of the License. 00017 // 00018 // This program is distributed in the hope that it will be useful, 00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 // GNU General Public License for more details. 00022 // 00023 // You should have received a copy of the GNU General Public License 00024 // along with this program; if not, write to the Free Software 00025 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00026 // 02111-1307, USA. 00027 00028 #ifndef __REPLAY_H__ 00029 #define __REPLAY_H__ 00030 00032 00033 /*---------------------------------------------------------------------------- 00034 -- Includes 00035 ----------------------------------------------------------------------------*/ 00036 00037 #include <string> 00038 00039 /*---------------------------------------------------------------------------- 00040 -- Declarations 00041 ----------------------------------------------------------------------------*/ 00042 00043 enum ReplayType { 00044 ReplayNone, 00045 ReplaySinglePlayer, 00046 ReplayMultiPlayer, 00047 }; 00048 00049 class CFile; 00050 class CUnit; 00051 00052 /*---------------------------------------------------------------------------- 00053 -- Variables 00054 ----------------------------------------------------------------------------*/ 00055 00056 extern bool CommandLogDisabled; 00057 extern ReplayType ReplayGameType; 00058 00059 /*---------------------------------------------------------------------------- 00060 -- Functions 00061 ----------------------------------------------------------------------------*/ 00062 00064 extern void CommandLog(const char *action, const CUnit *unit, int flush, 00065 int x, int y, const CUnit *dest, const char *value, int num); 00067 extern void SinglePlayerReplayEachCycle(); 00069 extern void MultiPlayerReplayEachCycle(); 00071 extern int LoadReplay(const std::string &name); 00073 extern void EndReplayLog(void); 00075 extern void CleanReplayLog(void); 00077 extern void SaveReplayList(CFile *file); 00079 extern void ReplayCclRegister(void); 00080 00082 00083 #endif // !__REPLAY_H__
1.5.6