2
* part of the Simutrans project
10
#include "linehandle_t.h"
12
#include "tpl/vector_tpl.h"
17
class schedule_list_gui_t;
23
simlinemgmt_t(karte_t* welt);
26
void line_management_window(spieler_t *);
32
void add_line(linehandle_t new_line);
38
void delete_line(linehandle_t line);
41
* update a line -> apply updated fahrplan to all convoys
44
void update_line(linehandle_t line);
47
* load or save the linemanagement
49
void rdwr(karte_t * welt, loadsave_t * file, spieler_t * sp);
52
* sort the lines by name
57
* will register all stops for all lines
59
void register_all_stops();
62
* called after game is fully loaded;
64
void laden_abschliessen();
66
void rotate90( sint16 y_size );
71
* creates a line with an empty schedule
74
linehandle_t create_line(int ltype, spieler_t * sp);
77
* Creates a line and sets its schedule
80
linehandle_t create_line(int ltype, spieler_t * sp, schedule_t * fpl);
83
* fill the list with all lines of a certain type
84
* type == simline_t::line will return all lines
86
void get_lines(int type, vector_tpl<linehandle_t>* lines) const;
88
uint32 get_line_count() const { return all_managed_lines.get_count(); }
90
karte_t* get_welt() const { return welt; }
93
* Will open the line management window and offer information about the line
96
void show_lineinfo(spieler_t *sp, linehandle_t line);
99
vector_tpl<linehandle_t> all_managed_lines;
101
static karte_t * welt;
103
schedule_list_gui_t *schedule_list_gui; // Use with caution. Valid only afer zeige_info