functions.h

Go to the documentation of this file.
00001 /* $Id: functions.h 18809 2010-01-15 16:41:15Z rubidium $ */
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 FUNCTIONS_H
00013 #define FUNCTIONS_H
00014 
00015 #include "tile_cmd.h"
00016 
00017 /* clear_land.cpp */
00018 void DrawHillyLandTile(const TileInfo *ti);
00019 void DrawClearLandTile(const TileInfo *ti, byte set);
00020 void DrawClearLandFence(const TileInfo *ti);
00021 void TileLoopClearHelper(TileIndex tile);
00022 
00023 /* company_cmd.cpp */
00024 bool CheckCompanyHasMoney(CommandCost &cost);
00025 void SubtractMoneyFromCompany(CommandCost cost);
00026 void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
00027 bool CheckOwnership(Owner owner, TileIndex tile = 0);
00028 bool CheckTileOwnership(TileIndex tile);
00029 
00030 /* misc functions */
00036 void MarkTileDirtyByTile(TileIndex tile);
00037 
00038 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
00039 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
00040 
00041 void AskExitGame();
00042 void AskExitToGameMenu();
00043 
00044 void RedrawAutosave();
00045 
00046 int ttd_main(int argc, char *argv[]);
00047 void HandleExitGameRequest();
00048 
00049 #endif /* FUNCTIONS_H */

Generated on Sat Jul 17 18:43:17 2010 for OpenTTD by  doxygen 1.6.1