~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/ai/api/ai_tile.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ai_tile.hpp 16531 2009-06-07 15:26:33Z rubidium $ */
 
1
/* $Id: ai_tile.hpp 17080 2009-08-05 23:57:41Z rubidium $ */
2
2
 
3
3
/** @file ai_tile.hpp Everything to query and manipulate tiles. */
4
4
 
305
305
         * @pre AIMap::IsValidTile(tile).
306
306
         * @pre width > 0.
307
307
         * @pre height > 0.
308
 
         * @pre radius > 0.
 
308
         * @pre radius >= 0.
309
309
         * @return Value below 8 means no acceptance; the more the better.
310
310
         */
311
311
        static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type, int width, int height, int radius);
322
322
         * @pre AIMap::IsValidTile(tile).
323
323
         * @pre width > 0.
324
324
         * @pre height > 0.
325
 
         * @pre radius > 0.
 
325
         * @pre radius >= 0.
326
326
         * @return The tiles that produce this cargo within radius of the tile.
327
327
         * @note Town(houses) are not included in the value.
328
328
         */
386
386
         * @pre end_tile < AIMap::GetMapSize().
387
387
         * @exception AIError::ERR_AREA_NOT_CLEAR
388
388
         * @exception AIError::ERR_TOO_CLOSE_TO_EDGE
389
 
         * @return True if and only if the area was completely leveled.
 
389
         * @return True if one or more tiles were leveled.
390
390
         * @note Even if leveling some part fails, some other part may have been
391
391
         *  succesfully leveled already.
392
392
         * @note This function may return true in AITestMode, although it fails in