Permalink
Commits on Jan 6, 2012
  1. Merge pull request #4 from Klibbnisse/patch-1

    Added West Portal, QN junction, Unknown Station to the Y70 outer loop.
    committed Jan 6, 2012
Commits on Jan 5, 2012
Commits on Dec 27, 2011
  1. added more Y70 stations

    committed Dec 27, 2011
Commits on Dec 26, 2011
  1. loops on map draw correctly

    Now the final leg of a loop is drawn properly in subway map view. This
    was accomplished with the addition of Line#loop? and Line#oneway?
    methods, which also simplified the logic in the listing template
    somewhat.
    committed Dec 26, 2011
  2. line metadata refactoring

    Now, lines have three pieces of metadata: type (organizational use of
    the track - previously level), flow (traffic flow pattern), and level
    (elevated, surface, or underground). The line's color on the subway map
    output is determined by its type.
    committed Dec 26, 2011
  3. properly round coordinates instead of truncating

    Now, instead of simply dropping the decimal when scaling down to 1:100
    (or whatever), it will be rounded to the nearest whole number (i.e.
    1659 / 100 rounds to 17). This results in less distortion, though
    obviously more data is needed for it to be a truly accurate map.
    committed Dec 26, 2011
  4. added new stations on the Y70

    I went exploring on the Y70 a bit and found a few new rail stations.
    Also a bit of style correcting.
    committed Dec 26, 2011
  5. early prototype graphical map

    Based on work by hansihe on /r/mcpublic, this generates a magical
    JavaScript-based subway-style map. It looks nowhere near as good as an
    actual hand-designed map, but this is just the proof of concept
    anyways. Thanks hansihe!
    committed Dec 26, 2011
  6. added some helpers for origin-based coordinates

    The data file now needs an xrange and a zrange element, which describes
    the bounds of the area being mapped. This allows us to add station
    methods for the coordinates relative to an origin at the northwest
    corner of the map rather than at spawn.
    committed Dec 26, 2011
  7. updated README

    The README has been updated to include better usage instructions, and
    eliminate the part about "static text" - hopefully next commit will be
    the graphical map.
    committed Dec 26, 2011
  8. refactored command line interface

    Now the command-line interface...actually exists, to be honest. It uses
    optparse to accept -t, -s, and -o options, as well as display help.
    Hooray for progress!
    committed Dec 26, 2011
Commits on Dec 25, 2011
  1. converted the template to Haml

    I rewrote our existing Markaby template in Haml. This has the primary
    advantage that the template is separate from the data model, and we can
    thus trivially generate different types of output. A secondary
    advantage is that the railgen.rb file is smaller.
    committed Dec 25, 2011
  2. added details for new line metadata

    While collecting data on the lines, I added two new keys: flow and
    type. Flow represents the way lines can travel (currently twoway,
    oneway, or loop), type represents their construction (y12, y70, or
    surface, with more probably to come). This tracks those and adds them
    to the generated HTML.
    committed Dec 25, 2011
  3. added a bunch of new rails

    Note that these are STILL nowhere near complete. These guys build rail
    like nobody's business.
    committed Dec 25, 2011
  4. added get_station method to aid debugging

    The existing station lookup logic means that when a station doesn't
    exist, you get a random error about "nil has no add_line method." This
    adds a method that will raise a proper error with the name of the
    missing station.
    committed Dec 25, 2011
Commits on Dec 10, 2011
  1. fixed a sorting bug in each_line

    Because I was using sort instead of sort_by, the block was being used
    as a comparator instead of a sort key. Now the lines should be listed
    in order for each stop.
    committed Dec 10, 2011
  2. added to_s and inspect methods for classes

    The to_s methods just contain the name of the object (and the number
    for Lines), and inspect just returns the name instead of all the
    instance variables. The fact that a large recursive inspect was being
    printed every time I tried to to something in irb bothered me somewhat.
    committed Dec 10, 2011
  3. Merge pull request #1 from pixelcort/master

    Interactively show Lines and Stations when clicked
    committed Dec 10, 2011
  4. initial commit

    This commit has some skeleton data for the rails and the actual script,
    but no style.
    committed Dec 10, 2011