yapf_settings.h

Go to the documentation of this file.
00001 /* $Id: yapf_settings.h 9051 2007-03-07 12:11:48Z rubidium $ */
00002 
00005 #if !defined(YAPF_SETTINGS_H) || defined(YS_DEF)
00006 
00007 # ifndef  YAPF_SETTINGS_H
00008 #  define  YAPF_SETTINGS_H
00009 # endif
00010 
00011 # ifndef YS_DEF
00012 /*
00013  *  if YS_DEF is not defined, we will only do following declaration:
00014  *  struct YapfSettings {
00015  *    bool   disable_node_optimization;
00016  *    uint32 max_search_nodes;
00017  *    .... all other yapf related settings ...
00018  *  };
00019  *
00020  *  otherwise we will just expand YS_DEF_xx macros and then #undef them
00021  */
00022 #  define YS_DEF_BEGIN struct YapfSettings {
00023 #  define YS_DEF(type, name) type name;
00024 #  define YS_DEF_END };
00025 
00026 # endif /* !YS_DEF */
00027 
00028 # ifndef   YS_DEF_BEGIN
00029 #  define  YS_DEF_BEGIN
00030 # endif // YS_DEF_BEGIN
00031 
00032 # ifndef   YS_DEF_END
00033 #  define  YS_DEF_END
00034 # endif // YS_DEF_END
00035 
00036 YS_DEF_BEGIN
00037   YS_DEF(bool  , disable_node_optimization)  
00038   YS_DEF(uint32, max_search_nodes)           
00039   YS_DEF(bool  , ship_use_yapf)              
00040   YS_DEF(bool  , road_use_yapf)              
00041   YS_DEF(bool  , rail_use_yapf)              
00042   YS_DEF(uint32, road_slope_penalty)         
00043   YS_DEF(uint32, road_curve_penalty)         
00044   YS_DEF(uint32, road_crossing_penalty)      
00045   YS_DEF(uint32, road_stop_penalty)          
00046   YS_DEF(bool  , rail_firstred_twoway_eol)   
00047   YS_DEF(uint32, rail_firstred_penalty)      
00048   YS_DEF(uint32, rail_firstred_exit_penalty) 
00049   YS_DEF(uint32, rail_lastred_penalty)       
00050   YS_DEF(uint32, rail_lastred_exit_penalty)  
00051   YS_DEF(uint32, rail_station_penalty)       
00052   YS_DEF(uint32, rail_slope_penalty)         
00053   YS_DEF(uint32, rail_curve45_penalty)       
00054   YS_DEF(uint32, rail_curve90_penalty)       
00055   YS_DEF(uint32, rail_depot_reverse_penalty) 
00056   YS_DEF(uint32, rail_crossing_penalty)      
00057   YS_DEF(uint32, rail_look_ahead_max_signals)
00058   YS_DEF(int32 , rail_look_ahead_signal_p0)  
00059   YS_DEF(int32 , rail_look_ahead_signal_p1)  
00060   YS_DEF(int32 , rail_look_ahead_signal_p2)  
00061 
00062   YS_DEF(uint32, rail_longer_platform_penalty)           
00063   YS_DEF(uint32, rail_longer_platform_per_tile_penalty)  
00064   YS_DEF(uint32, rail_shorter_platform_penalty)          
00065   YS_DEF(uint32, rail_shorter_platform_per_tile_penalty) 
00066 YS_DEF_END
00067 
00068 #undef YS_DEF_BEGIN
00069 #undef YS_DEF
00070 #undef YS_DEF_END
00071 
00072 #endif /* !YAPF_SETTINGS_H || YS_DEF */

Generated on Wed Oct 1 17:03:26 2008 for openttd by  doxygen 1.5.6