src/void_map.h
author Tero Marttila <terom@fixme.fi>
Tue, 22 Jul 2008 23:20:33 +0300
changeset 11184 88c967f1422b
parent 10429 1b99254f9607
permissions -rw-r--r--
add an empty bin/cache dir
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     1
/* $Id$ */
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     2
10429
1b99254f9607 (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: 8604
diff changeset
     3
/** @file void_map.h Map accessors for void tiles. */
6919
339210ecccd3 (svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents: 6658
diff changeset
     4
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     5
#ifndef VOID_MAP_H
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     6
#define VOID_MAP_H
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     7
8604
8afdd9877afd (svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
rubidium
parents: 6985
diff changeset
     8
#include "tile_map.h"
8afdd9877afd (svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
rubidium
parents: 6985
diff changeset
     9
6985
6fd300b20503 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6919
diff changeset
    10
/**
6fd300b20503 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6919
diff changeset
    11
 * Make a nice void tile ;)
6fd300b20503 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6919
diff changeset
    12
 * @param t the tile to make void
6fd300b20503 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6919
diff changeset
    13
 */
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    14
static inline void MakeVoid(TileIndex t)
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    15
{
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    16
	SetTileType(t, MP_VOID);
3080
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    17
	SetTileHeight(t, 0);
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    18
	_m[t].m1 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    19
	_m[t].m2 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    20
	_m[t].m3 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    21
	_m[t].m4 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    22
	_m[t].m5 = 0;
5847
9ce114e1d90d (svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
belugas
parents: 5726
diff changeset
    23
	_m[t].m6 = 0;
6658
59048224be55 (svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
maedhros
parents: 5847
diff changeset
    24
	_me[t].m7 = 0;
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    25
}
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
    26
4666
850b5b6e4bac (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 */