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 "tile_cmd.h"
00016
00017
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
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
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