Changeset 558:4abf8cf717e9 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 8:09:53 PM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
rebase_source:
fbeb102cac6de6cbb771dc2eab8a5072a8c05149
Message:

Rename "bulkhead" to "hatch".

Location:
nagslang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r551 r558  
    481481
    482482
    483 class Bulkhead(GameObject):
    484     # Yes, I know this should be "hatch" instead of "bulkhead". It was late and
    485     # I was tired and the search/replace would touch *everything* now.
     483class Hatch(GameObject):
    486484    zorder = ZORDER_FLOOR
    487485
     
    494492        else:
    495493            puzzler = puzzle.StateProxyPuzzler(key_state)
    496         super(Bulkhead, self).__init__(
    497             SingleShapePhysicser(space, self.shape),
    498             render.BulkheadRenderer(),
     494        super(Hatch, self).__init__(
     495            SingleShapePhysicser(space, self.shape),
     496            render.HatchRenderer(),
    499497            puzzler,
    500498        )
  • nagslang/render.py

    r521 r558  
    4848
    4949
    50 class BulkheadRenderer(Renderer):
    51     def draw_bulkhead_line(self, surface, a, b):
     50class HatchRenderer(Renderer):
     51    def draw_hatch_line(self, surface, a, b):
    5252        ai, bi = extend_line(a, b, -2)
    5353        a, b, ai, bi = points_to_pygame(surface, (a, b, ai, bi))
     
    6363            ai = shape.a + offset
    6464            bi = shape.b - offset
    65             self.draw_bulkhead_line(surface, shape.a, ai)
    66             self.draw_bulkhead_line(surface, bi, shape.b)
     65            self.draw_hatch_line(surface, shape.a, ai)
     66            self.draw_hatch_line(surface, bi, shape.b)
    6767        else:
    6868            mid = shape.a + (shape.b - shape.a) / 2
    69             self.draw_bulkhead_line(surface, shape.a, mid)
    70             self.draw_bulkhead_line(surface, mid, shape.b)
     69            self.draw_hatch_line(surface, shape.a, mid)
     70            self.draw_hatch_line(surface, mid, shape.b)
    7171
    7272
Note: See TracChangeset for help on using the changeset viewer.