# elrail_func.h

Go to the documentation of this file.

    00001 /* $Id: elrail_func.h 15334 2009-02-04 15:01:37Z smatz $ */
    00002
    00005 #ifndef ELRAIL_FUNC_H
    00006 #define ELRAIL_FUNC_H
    00007
    00008 #include "rail.h"
    00009 #include "transparency.h"
    00010 #include "tile_cmd.h"
    00011 #include "settings_type.h"
    00012
    00017 static inline bool HasCatenary(RailType rt)
    00018 {
    00019   return HasBit(GetRailTypeInfo(rt)->flags, RTF_CATENARY);
    00020 }
    00021
    00026 static inline bool HasCatenaryDrawn(RailType rt)
    00027 {
    00028   return HasCatenary(rt) && !IsInvisibilitySet(TO_CATENARY) && !_settings_game.vehicle.disable_elrails;
    00029 }
    00030
    00036 void DrawCatenary(const TileInfo *ti);
    00037 void DrawCatenaryOnTunnel(const TileInfo *ti);
    00038 void DrawCatenaryOnBridge(const TileInfo *ti);
    00039
    00040 bool SettingsDisableElrail(int32 p1);
    00041
    00042 #endif /* ELRAIL_FUNC_H */