public edittools(trktype type_, trkdir direction_, int x_, int y_) { type = type_; direction = direction_; x = x_; y = y_; }
public static Track findTrackType(int x, int y, trktype type) { Track t; switch (type) { case trktype.TRACK: return(find_in_list(track_list, x, y)); case trktype.TSIGNAL: return(find_in_list(signal_list, x, y)); case trktype.SWITCH: return(find_in_list(switch_list, x, y)); case trktype.TEXT: return(find_in_list(text_list, x, y)); } for (t = layout; t != null; t = t.next) { if (t.x == x && t.y == y && t.TrackType == type) { return(t); } } return(null); }
public edittools(trktype type_, int direction_, int x_, int y_) : this(type_, (trkdir)direction_, x_, y_) { }