gamelog.h

Go to the documentation of this file.
00001 /* $Id: gamelog.h 20674 2010-08-28 20:15:45Z alberth $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD 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, version 2.
00006  * OpenTTD 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.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef GAMELOG_H
00013 #define GAMELOG_H
00014 
00015 #include "newgrf_config.h"
00016 
00017 enum GamelogActionType {
00018   GLAT_START,        
00019   GLAT_LOAD,         
00020   GLAT_GRF,          
00021   GLAT_CHEAT,        
00022   GLAT_SETTING,      
00023   GLAT_GRFBUG,       
00024   GLAT_EMERGENCY,    
00025   GLAT_END,          
00026   GLAT_NONE  = 0xFF, 
00027 };
00028 
00029 void GamelogStartAction(GamelogActionType at);
00030 void GamelogStopAction();
00031 
00032 void GamelogReset();
00033 
00034 typedef void GamelogPrintProc(const char *s);
00035 void GamelogPrint(GamelogPrintProc *proc); // needed for WIN32 / WINCE crash.log
00036 
00037 void GamelogPrintDebug(int level);
00038 void GamelogPrintConsole();
00039 
00040 void GamelogEmergency();
00041 bool GamelogTestEmergency();
00042 
00043 void GamelogRevision();
00044 void GamelogMode();
00045 void GamelogOldver();
00046 void GamelogSetting(const char *name, int32 oldval, int32 newval);
00047 
00048 void GamelogGRFUpdate(const GRFConfig *oldg, const GRFConfig *newg);
00049 void GamelogGRFAddList(const GRFConfig *newg);
00050 void GamelogGRFRemove(uint32 grfid);
00051 void GamelogGRFAdd(const GRFConfig *newg);
00052 void GamelogGRFCompatible(const GRFIdentifier *newg);
00053 
00054 void GamelogTestRevision();
00055 void GamelogTestMode();
00056 
00057 bool GamelogGRFBugReverse(uint32 grfid, uint16 internal_id);
00058 
00059 #endif /* GAMELOG_H */

Generated on Fri Mar 18 23:17:35 2011 for OpenTTD by  doxygen 1.6.1