tunnel_map.h
author Darkvater
Sat, 12 Aug 2006 12:22:38 +0000
branch0.4
changeset 10074 cae7dc5c5dfe
parent 10050 53795ed4cdaf
permissions -rw-r--r--
(svn r5861) - Backport from trunk (r5839):
A ship in a depot must be stopped before allowed to be cloned (copied ship.h from trunk).
/* $Id$ */

#ifndef TUNNEL_MAP_H
#define TUNNEL_MAP_H

#include "macros.h"
#include "map.h"


static inline bool IsTunnel(TileIndex t)
{
	assert(IsTileType(t, MP_TUNNELBRIDGE));
	return !HASBIT(_m[t].m5, 7);
}


static inline uint GetTunnelDirection(TileIndex t)
{
	assert(IsTunnelTile(t));
	return (uint)GB(_m[t].m5, 0, 2);
}


bool IsTunnelInWay(TileIndex, uint z);

#endif