File diff r27165:ea28ecab6159 → r27166:64e04a3ef9b1
src/rail.h
Show inline comments
 
@@ -15,12 +15,13 @@
 
#include "gfx_type.h"
 
#include "core/bitmath_func.hpp"
 
#include "economy_func.h"
 
#include "slope_type.h"
 
#include "strings_type.h"
 
#include "date_type.h"
 
#include "timer/timer_game_calendar.h"
 
#include "signal_type.h"
 
#include "settings_type.h"
 

	
 
/** Railtype flags. */
 
enum RailTypeFlags {
 
	RTF_CATENARY          = 0,                           ///< Bit number for drawing a catenary.
 
@@ -246,13 +247,13 @@ public:
 
	 * Introduction date.
 
	 * When #INVALID_DATE or a vehicle using this railtype gets introduced earlier,
 
	 * the vehicle's introduction date will be used instead for this railtype.
 
	 * The introduction at this date is furthermore limited by the
 
	 * #introduction_required_railtypes.
 
	 */
 
	Date introduction_date;
 
	TimerGameCalendar::Date introduction_date;
 

	
 
	/**
 
	 * Bitmask of railtypes that are required for this railtype to be introduced
 
	 * at a given #introduction_date.
 
	 */
 
	RailTypes introduction_required_railtypes;
 
@@ -447,13 +448,13 @@ Foundation GetRailFoundation(Slope tileh
 

	
 

	
 
bool HasRailtypeAvail(const CompanyID company, const RailType railtype);
 
bool HasAnyRailtypesAvail(const CompanyID company);
 
bool ValParamRailtype(const RailType rail);
 

	
 
RailTypes AddDateIntroducedRailTypes(RailTypes current, Date date);
 
RailTypes AddDateIntroducedRailTypes(RailTypes current, TimerGameCalendar::Date date);
 

	
 
RailTypes GetCompanyRailtypes(CompanyID company, bool introduces = true);
 
RailTypes GetRailTypes(bool introduces);
 

	
 
RailType GetRailTypeByLabel(RailTypeLabel label, bool allow_alternate_labels = true);