mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 13:39:18 +02:00
reformat: remove redundant 'inline' specifier
This commit is contained in:
@@ -68,7 +68,7 @@ private:
|
||||
};
|
||||
|
||||
// passes specified sound to all vehicles within range as a radio message broadcasted on specified channel
|
||||
void radio_message( sound_source *Message, int const Channel );
|
||||
void radio_message( sound_source *Message, int Channel );
|
||||
|
||||
extern state_manager State;
|
||||
extern event_manager Events;
|
||||
|
||||
@@ -32,36 +32,36 @@ public:
|
||||
void update();
|
||||
void update_precipitation();
|
||||
void update_moon();
|
||||
void time( int const Hour = -1, int const Minute = -1, int const Second = -1 );
|
||||
void time( int Hour = -1, int Minute = -1, int Second = -1 );
|
||||
// switches between static and dynamic daylight calculation
|
||||
void on_daylight_change();
|
||||
// calculates current season of the year based on set simulation date
|
||||
void compute_season( int const Yearday );
|
||||
void compute_season( int Yearday );
|
||||
// calculates current weather
|
||||
void compute_weather();
|
||||
// data access
|
||||
inline auto const &
|
||||
auto const &
|
||||
sun() const {
|
||||
return m_sun; }
|
||||
inline auto const &
|
||||
auto const &
|
||||
moon() const {
|
||||
return m_moon; }
|
||||
inline auto const &
|
||||
auto const &
|
||||
light_intensity() const {
|
||||
return m_lightintensity; }
|
||||
inline auto const &
|
||||
auto const &
|
||||
skydome() const {
|
||||
return m_skydome; }
|
||||
inline auto &
|
||||
auto &
|
||||
skydome() {
|
||||
return m_skydome; }
|
||||
inline auto const &
|
||||
auto const &
|
||||
precipitation() const {
|
||||
return m_precipitation; }
|
||||
inline auto const &
|
||||
auto const &
|
||||
wind() const {
|
||||
return m_wind.vector; }
|
||||
inline auto const &
|
||||
auto const &
|
||||
wind_azimuth() const {
|
||||
return m_wind.azimuth; }
|
||||
|
||||
|
||||
@@ -22,27 +22,22 @@ public:
|
||||
void
|
||||
init(time_t timestamp = 0);
|
||||
void
|
||||
update( double const Deltatime );
|
||||
inline
|
||||
SYSTEMTIME &
|
||||
update( double Deltatime );
|
||||
SYSTEMTIME &
|
||||
data() {
|
||||
return m_time; }
|
||||
inline
|
||||
SYSTEMTIME const &
|
||||
SYSTEMTIME const &
|
||||
data() const {
|
||||
return m_time; }
|
||||
inline
|
||||
double
|
||||
double
|
||||
second() const {
|
||||
return m_time.wMilliseconds * 0.001 + m_time.wSecond; }
|
||||
inline
|
||||
int
|
||||
int
|
||||
year_day() const {
|
||||
return m_yearday; }
|
||||
int
|
||||
julian_day() const;
|
||||
inline
|
||||
double
|
||||
double
|
||||
zone_bias() const {
|
||||
return m_timezonebias; }
|
||||
void
|
||||
@@ -56,22 +51,22 @@ private:
|
||||
convert_transition_time( SYSTEMTIME &Time ) const;
|
||||
// calculates day and month from given day of year
|
||||
void
|
||||
daymonth( WORD &Day, WORD &Month, WORD const Year, WORD const Yearday );
|
||||
daymonth( WORD &Day, WORD &Month, WORD Year, WORD Yearday );
|
||||
// calculates day of year from given date
|
||||
int
|
||||
year_day( int Day, int const Month, int const Year ) const;
|
||||
year_day( int Day, int Month, int Year ) const;
|
||||
// calculates day of week for provided date
|
||||
int
|
||||
day_of_week( int const Day, int const Month, int const Year ) const;
|
||||
day_of_week( int Day, int Month, int Year ) const;
|
||||
// calculates day of month for specified weekday of specified month of the year
|
||||
int
|
||||
day_of_month( int const Week, int const Weekday, int const Month, int const Year ) const;
|
||||
day_of_month( int Week, int Weekday, int Month, int Year ) const;
|
||||
// returns number of days between specified days of week
|
||||
int
|
||||
weekdays( int const First, int const Second ) const;
|
||||
weekdays( int First, int Second ) const;
|
||||
// returns true if specified year is a leap year, false otherwise
|
||||
bool
|
||||
is_leap( int const Year ) const;
|
||||
is_leap( int Year ) const;
|
||||
|
||||
SYSTEMTIME m_time;
|
||||
double m_milliseconds{ 0.0 };
|
||||
|
||||
Reference in New Issue
Block a user