mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 11:19:19 +02:00
reformat: functions can be made static
This commit is contained in:
@@ -829,7 +829,8 @@ putvalues_event::export_as_text_( std::ostream &Output ) const {
|
||||
|
||||
//determines whether provided input should be passed to consist owner
|
||||
bool
|
||||
putvalues_event::is_command_for_owner( input_data const &Input ) const {
|
||||
putvalues_event::is_command_for_owner( input_data const &Input )
|
||||
{
|
||||
|
||||
if (Input.data_text.starts_with("Load=") || Input.data_text.starts_with("UnLoad=")) {
|
||||
return false;
|
||||
|
||||
@@ -278,8 +278,8 @@ private:
|
||||
void run_() override;
|
||||
// export_as_text() subclass details
|
||||
void export_as_text_( std::ostream &Output ) const override;
|
||||
//determines whether provided input should be passed to consist owner
|
||||
bool is_command_for_owner( input_data const &Input ) const;
|
||||
// determines whether provided input should be passed to consist owner
|
||||
static bool is_command_for_owner( input_data const &Input );
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -3594,7 +3594,8 @@ path_table::TrackBusyList() const {
|
||||
|
||||
// legacy method, sends list of occupied path sections over network
|
||||
void
|
||||
path_table::IsolatedBusyList() const {
|
||||
path_table::IsolatedBusyList()
|
||||
{
|
||||
// wysłanie informacji o wszystkich odcinkach izolowanych
|
||||
TIsolated *Current;
|
||||
for( Current = TIsolated::Root(); Current; Current = Current->Next() ) {
|
||||
@@ -3607,7 +3608,8 @@ path_table::IsolatedBusyList() const {
|
||||
|
||||
// legacy method, sends state of specified path section over network
|
||||
void
|
||||
path_table::IsolatedBusy( std::string const &Name ) const {
|
||||
path_table::IsolatedBusy( std::string const &Name )
|
||||
{
|
||||
// wysłanie informacji o odcinku izolowanym (t)
|
||||
// Ra 2014-06: do wyszukania użyć drzewka nazw
|
||||
TIsolated *Current;
|
||||
|
||||
@@ -274,8 +274,8 @@ public:
|
||||
void Load(cParser *parser, glm::dvec3 const &pOrigin);
|
||||
bool AssignEvents();
|
||||
bool AssignForcedEvents(basic_event *NewEventPlus, basic_event *NewEventMinus);
|
||||
void QueueEvents( event_sequence const &Events, TDynamicObject const *Owner );
|
||||
void QueueEvents( event_sequence const &Events, TDynamicObject const *Owner, double Delaylimit );
|
||||
static void QueueEvents( event_sequence const &Events, TDynamicObject const *Owner );
|
||||
static void QueueEvents( event_sequence const &Events, TDynamicObject const *Owner, double Delaylimit );
|
||||
bool CheckDynamicObject(TDynamicObject *Dynamic);
|
||||
bool AddDynamicObject(TDynamicObject *Dynamic);
|
||||
bool RemoveDynamicObject(TDynamicObject *Dynamic);
|
||||
@@ -381,11 +381,11 @@ public:
|
||||
void
|
||||
TrackBusyList() const;
|
||||
// legacy method, sends list of occupied path sections over network
|
||||
void
|
||||
IsolatedBusyList() const;
|
||||
static void
|
||||
IsolatedBusyList();
|
||||
// legacy method, sends state of specified path section over network
|
||||
void
|
||||
IsolatedBusy( std::string const &Name ) const;
|
||||
static void
|
||||
IsolatedBusy( std::string const &Name );
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
@@ -17,7 +17,7 @@ class basic_station {
|
||||
public:
|
||||
// methods
|
||||
// exchanges load with consist attached to specified vehicle, operating on specified schedule; returns: time needed for exchange, in seconds
|
||||
double
|
||||
static double
|
||||
update_load( TDynamicObject *First, Mtable::TTrainParameters &Schedule, int Platform );
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user