functions.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
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
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
00026 bool CheckCompanyHasMoney(CommandCost cost);
00027 void SubtractMoneyFromCompany(CommandCost cost);
00028 void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
00029 bool CheckOwnership(Owner owner, TileIndex tile = 0);
00030 bool CheckTileOwnership(TileIndex tile);
00031
00032
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