functions.h File Reference

Some generic functions that actually shouldn't be here. More...

#include "core/random_func.hpp"
#include "command_type.h"
#include "tile_cmd.h"

Go to the source code of this file.

Functions

void DrawHillyLandTile (const TileInfo *ti)
void DrawClearLandTile (const TileInfo *ti, byte set)
void DrawClearLandFence (const TileInfo *ti)
void TileLoopClearHelper (TileIndex tile)
bool CheckCompanyHasMoney (CommandCost cost)
void SubtractMoneyFromCompany (CommandCost cost)
void SubtractMoneyFromCompanyFract (CompanyID company, CommandCost cost)
bool CheckOwnership (Owner owner, TileIndex tile=0)
 Check whether the current owner owns something.
bool CheckTileOwnership (TileIndex tile)
 Check whether the current owner owns the stuff on the given tile.
void MarkTileDirtyByTile (TileIndex tile)
 Mark a tile given by its index dirty for repaint.
void ShowCostOrIncomeAnimation (int x, int y, int z, Money cost)
void ShowFeederIncomeAnimation (int x, int y, int z, Money cost)
void AskExitGame ()
void AskExitToGameMenu ()
void RedrawAutosave ()
int ttd_main (int argc, char *argv[])
void HandleExitGameRequest ()


Detailed Description

Some generic functions that actually shouldn't be here.

Definition in file functions.h.


Function Documentation

bool CheckOwnership ( Owner  owner,
TileIndex  tile 
)

bool CheckTileOwnership ( TileIndex  tile  ) 

Check whether the current owner owns the stuff on the given tile.

If that isn't the case an appropriate error will be given.

Parameters:
tile the tile to check.
Returns:
true iff it's owned by the current company.

Definition at line 268 of file company_cmd.cpp.

References GetNameOfOwner(), GetTileOwner(), and OWNER_END.

Referenced by CmdBuildSingleRail(), CmdBuildSingleSignal(), CmdConvertRail(), CmdRemoveSingleRail(), CmdRemoveSingleSignal(), and CmdSellLandArea().


Generated on Tue Jan 5 21:03:03 2010 for OpenTTD by  doxygen 1.5.6