# functions.h

Go to the documentation of this file.

    00001 /* $Id$ */
    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 "core/random_func.hpp"
    00016 #include "command_type.h"
    00017 #include "tile_cmd.h"
    00018
    00019 /* clear_land.cpp */
    00020 void DrawHillyLandTile(const TileInfo *ti);
    00021 void DrawClearLandTile(const TileInfo *ti, byte set);
    00022 void DrawClearLandFence(const TileInfo *ti);
    00023 void TileLoopClearHelper(TileIndex tile);
    00024
    00025 /* company_cmd.cpp */
    00026 bool CheckCompanyHasMoney(CommandCost cost);
    00027 void SubtractMoneyFromCompany(CommandCost cost);
    00028 void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
    00029 bool CheckOwnership(Owner owner);
    00030 bool CheckTileOwnership(TileIndex tile);
    00031
    00032 /* misc functions */
    00038 void MarkTileDirtyByTile(TileIndex tile);
    00039
    00040 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
    00041 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
    00042
    00043 void AskExitGame();
    00044 void AskExitToGameMenu();
    00045
    00046 void RedrawAutosave();
    00047
    00048 int ttd_main(int argc, char *argv[]);
    00049 void HandleExitGameRequest();
    00050
    00051 #endif /* FUNCTIONS_H */