# functions.h

Go to the documentation of this file.

    00001 /* $Id: functions.h 14949 2009-01-10 00:31:47Z rubidium $ */
    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 /* clear_land.cpp */
    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 /* company_cmd.cpp */
    00019 bool CheckCompanyHasMoney(CommandCost cost);
    00020 void SubtractMoneyFromCompany(CommandCost cost);
    00021 void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
    00022 bool CheckOwnership(Owner owner);
    00023 bool CheckTileOwnership(TileIndex tile);
    00024
    00025 void InitializeLandscapeVariables(bool only_constants);
    00026
    00027 /* misc functions */
    00033 void MarkTileDirty(int x, int y);
    00034
    00040 void MarkTileDirtyByTile(TileIndex tile);
    00041
    00047 void MarkAllViewportsDirty(int left, int top, int right, int bottom);
    00048 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
    00049 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
    00050
    00051 void AskExitGame();
    00052 void AskExitToGameMenu();
    00053
    00054 void RedrawAutosave();
    00055
    00056 int ttd_main(int argc, char *argv[]);
    00057 void HandleExitGameRequest();
    00058
    00059 #endif /* FUNCTIONS_H */