2005-07-24 15:12:37 +01:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 21:21:05 +01:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 16:11:33 +01:00
|
|
|
/** @file functions.h Some generic functions that actually shouldn't be here. */
|
2007-03-01 01:24:44 +00:00
|
|
|
|
2004-08-09 18:04:08 +01:00
|
|
|
#ifndef FUNCTIONS_H
|
|
|
|
#define FUNCTIONS_H
|
|
|
|
|
2007-12-25 23:42:52 +00:00
|
|
|
#include "tile_cmd.h"
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* clear_land.cpp */
|
2005-09-18 21:56:44 +01:00
|
|
|
void DrawHillyLandTile(const TileInfo *ti);
|
|
|
|
void DrawClearLandTile(const TileInfo *ti, byte set);
|
2005-07-28 20:18:27 +01:00
|
|
|
void DrawClearLandFence(const TileInfo *ti);
|
2005-03-04 10:34:44 +00:00
|
|
|
void TileLoopClearHelper(TileIndex tile);
|
2004-08-09 18:04:08 +01:00
|
|
|
|
2008-09-30 21:39:50 +01:00
|
|
|
/* company_cmd.cpp */
|
2010-01-11 20:21:56 +00:00
|
|
|
bool CheckCompanyHasMoney(CommandCost &cost);
|
2008-09-30 21:39:50 +01:00
|
|
|
void SubtractMoneyFromCompany(CommandCost cost);
|
|
|
|
void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
|
2010-03-13 17:11:28 +00:00
|
|
|
CommandCost CheckOwnership(Owner owner, TileIndex tile = 0);
|
2010-03-07 20:44:05 +00:00
|
|
|
CommandCost CheckTileOwnership(TileIndex tile);
|
2004-08-09 18:04:08 +01:00
|
|
|
|
|
|
|
/* misc functions */
|
2007-09-09 11:13:17 +01:00
|
|
|
/**
|
|
|
|
* Mark a tile given by its index dirty for repaint.
|
|
|
|
*
|
|
|
|
* @ingroup dirty
|
|
|
|
*/
|
2004-08-09 18:04:08 +01:00
|
|
|
void MarkTileDirtyByTile(TileIndex tile);
|
2007-09-09 11:13:17 +01:00
|
|
|
|
2007-06-21 15:32:27 +01:00
|
|
|
void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
|
|
|
|
void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
|
2004-08-09 18:04:08 +01:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void AskExitGame();
|
|
|
|
void AskExitToGameMenu();
|
2004-08-09 18:04:08 +01:00
|
|
|
|
2009-01-10 00:31:47 +00:00
|
|
|
int ttd_main(int argc, char *argv[]);
|
2007-03-07 11:47:46 +00:00
|
|
|
void HandleExitGameRequest();
|
2004-08-09 18:04:08 +01:00
|
|
|
|
|
|
|
#endif /* FUNCTIONS_H */
|