Ignore:
Timestamp:
09/05/13 11:15:31 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Protagonist and enemies should see the world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r265 r277  
    2323    """A base class for mobile enemies"""
    2424
    25     def __init__(self, space, position):
     25    def __init__(self, space, world, position):
    2626        self._setup_physics(space, position)
    2727        self._setup_renderer()
     
    3030            self._physicser, self.renderer)
    3131        self.zorder = ZORDER_MID
     32        self.world = world
    3233
    3334    def _get_image(self, name, *transforms):
     
    5152    is_moving = True  # Always walking.
    5253
    53     def __init__(self, space, position, end_position):
     54    def __init__(self, space, world, position, end_position):
    5455        # An enemy that patrols between the two points
    55         super(PatrollingAlien, self).__init__(space, position)
     56        super(PatrollingAlien, self).__init__(space, world, position)
    5657        self._start_pos = position
    5758        self._end_pos = end_position
Note: See TracChangeset for help on using the changeset viewer.