author | peter1138 |
Sun, 03 Aug 2008 17:35:08 +0000 | |
changeset 9834 | 7474149531c1 |
parent 9111 | 48ce04029fe4 |
permissions | -rw-r--r-- |
3075
fd64f71655eb
(svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff
changeset
|
1 |
/* $Id$ */ |
fd64f71655eb
(svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff
changeset
|
2 |
|
9111
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
8108
diff
changeset
|
3 |
/** @file void_map.h Map accessors for void tiles. */ |
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6332
diff
changeset
|
4 |
|
3145
e833d7a78887
(svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents:
3144
diff
changeset
|
5 |
#ifndef VOID_MAP_H |
e833d7a78887
(svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents:
3144
diff
changeset
|
6 |
#define VOID_MAP_H |
e833d7a78887
(svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents:
3144
diff
changeset
|
7 |
|
8108
b42a0e5c67ef
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
rubidium
parents:
6489
diff
changeset
|
8 |
#include "tile_map.h" |
b42a0e5c67ef
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
rubidium
parents:
6489
diff
changeset
|
9 |
|
6489
511474c82dd3
(svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents:
6423
diff
changeset
|
10 |
/** |
511474c82dd3
(svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents:
6423
diff
changeset
|
11 |
* Make a nice void tile ;) |
511474c82dd3
(svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents:
6423
diff
changeset
|
12 |
* @param t the tile to make void |
511474c82dd3
(svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents:
6423
diff
changeset
|
13 |
*/ |
3075
fd64f71655eb
(svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff
changeset
|
14 |
static inline void MakeVoid(TileIndex t) |
fd64f71655eb
(svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff
changeset
|
15 |
{ |
fd64f71655eb
(svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff
changeset
|
16 |
SetTileType(t, MP_VOID); |
3080
ab1fdf87033b
(svn r3669) Really wipe all data when making a void tile
tron
parents:
3075
diff
changeset
|
17 |
SetTileHeight(t, 0); |
ab1fdf87033b
(svn r3669) Really wipe all data when making a void tile
tron
parents:
3075
diff
changeset
|
18 |
_m[t].m1 = 0; |
ab1fdf87033b
(svn r3669) Really wipe all data when making a void tile
tron
parents:
3075
diff
changeset
|
19 |
_m[t].m2 = 0; |
ab1fdf87033b
(svn r3669) Really wipe all data when making a void tile
tron
parents:
3075
diff
changeset
|
20 |
_m[t].m3 = 0; |
ab1fdf87033b
(svn r3669) Really wipe all data when making a void tile
tron
parents:
3075
diff
changeset
|
21 |
_m[t].m4 = 0; |
ab1fdf87033b
(svn r3669) Really wipe all data when making a void tile
tron
parents:
3075
diff
changeset
|
22 |
_m[t].m5 = 0; |
5596
5bf7128140a0
(svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
belugas
parents:
5475
diff
changeset
|
23 |
_m[t].m6 = 0; |
6332
f3f436dcd7d0
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
maedhros
parents:
5596
diff
changeset
|
24 |
_me[t].m7 = 0; |
3075
fd64f71655eb
(svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff
changeset
|
25 |
} |
3145
e833d7a78887
(svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents:
3144
diff
changeset
|
26 |
|
4666
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
3145
diff
changeset
|
27 |
#endif /* VOID_MAP_H */ |