functions.h
Go to the documentation of this file.00001
00002
00005 #ifndef FUNCTIONS_H
00006 #define FUNCTIONS_H
00007
00008 #include "core/random_func.hpp"
00009 #include "command_type.h"
00010 #include "tile_cmd.h"
00011
00012
00013 void DrawHillyLandTile(const TileInfo *ti);
00014 void DrawClearLandTile(const TileInfo *ti, byte set);
00015 void DrawClearLandFence(const TileInfo *ti);
00016 void TileLoopClearHelper(TileIndex tile);
00017
00018
00019 bool CheckPlayerHasMoney(CommandCost cost);
00020 void SubtractMoneyFromPlayer(CommandCost cost);
00021 void SubtractMoneyFromPlayerFract(PlayerID player, CommandCost cost);
00022 bool CheckOwnership(Owner owner);
00023 bool CheckTileOwnership(TileIndex tile);
00024
00025
00026 void AddAnimatedTile(TileIndex tile);
00027 void DeleteAnimatedTile(TileIndex tile);
00028 void AnimateAnimatedTiles();
00029 void InitializeAnimatedTiles();
00030
00031
00032 void PlaceTreesRandomly();
00033
00034 void InitializeLandscapeVariables(bool only_constants);
00035
00036
00037 bool IsCustomName(StringID id);
00038 char *CopyFromOldName(StringID id);
00039
00040
00046 void MarkTileDirty(int x, int y);
00047
00053 void MarkTileDirtyByTile(TileIndex tile);
00054
00060 void MarkAllViewportsDirty(int left, int top, int right, int bottom);
00061 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
00062 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
00063
00064 void ShowHighscoreTable(int difficulty, int8 rank);
00065
00066 void AskExitGame();
00067 void AskExitToGameMenu();
00068
00069 void RedrawAutosave();
00070
00071 StringID RemapOldStringID(StringID s);
00072
00073 void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str);
00074
00075
00076
00077 void GameSizeChanged();
00078 const char *GetCurrentLocale(const char *param);
00079
00080 int ttd_main(int argc, char* argv[]);
00081 void HandleExitGameRequest();
00082
00083 #endif