Mercurial > hg > openttd
annotate src/water.h @ 10571:b6779abf2e96 draft
(svn r14828) -Codechange: move most of save/load-specific code to separate files
author | smatz <smatz@openttd.org> |
---|---|
date | Sun, 04 Jan 2009 15:32:25 +0000 |
parents | 3c66bb36c785 |
children | 7881d9cd55ab |
rev | line source |
---|---|
7948
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
2 |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
3 /** @file water.h Functions related to water (management) */ |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
4 |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
5 #ifndef WATER_H |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
6 #define WATER_H |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
7 |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
8 void TileLoop_Water(TileIndex tile); |
8380
ccf4087c045f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
frosch <frosch@openttd.org>
parents:
8332
diff
changeset
|
9 bool FloodHalftile(TileIndex t); |
ccf4087c045f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
frosch <frosch@openttd.org>
parents:
8332
diff
changeset
|
10 |
ccf4087c045f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
frosch <frosch@openttd.org>
parents:
8332
diff
changeset
|
11 void ConvertGroundTilesIntoWaterTiles(); |
ccf4087c045f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
frosch <frosch@openttd.org>
parents:
8332
diff
changeset
|
12 |
7948
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
13 void DrawShipDepotSprite(int x, int y, int image); |
8496
1a19e49ad645
(svn r12071) -Feature(ette): Draw river- and canal-edges under docks and shipdepots.
frosch <frosch@openttd.org>
parents:
8471
diff
changeset
|
14 void DrawWaterClassGround(const struct TileInfo *ti); |
8380
ccf4087c045f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
frosch <frosch@openttd.org>
parents:
8332
diff
changeset
|
15 void DrawShoreTile(Slope tileh); |
ccf4087c045f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
frosch <frosch@openttd.org>
parents:
8332
diff
changeset
|
16 |
8471
1e4ea519bfaf
(svn r12042) -Fix [FS#1676]: Reimplement how rivers and canals are stored in the map, allowing the sea/river/canal status to also be
peter1138 <peter1138@openttd.org>
parents:
8380
diff
changeset
|
17 void MakeWaterKeepingClass(TileIndex tile, Owner o); |
7948
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
18 |
4044e2de8086
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
19 #endif /* WATER_H */ |