Ignore:
Timestamp:
09/04/13 22:06:37 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Collision handlers get the protagonist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r235 r256  
    137137        self.renderer.animate()
    138138
    139     def collide_with_protagonist(self):
     139    def collide_with_protagonist(self, protagonist):
    140140        """Called as a `pre_solve` collision callback with the protagonist.
    141141
     
    255255        )
    256256
    257     def collide_with_protagonist(self):
     257    def collide_with_protagonist(self, protagonist):
    258258        if self.puzzler.get_state():
    259259            DoorEvent.post(self.destination, self.dest_pos)
     
    283283        )
    284284
    285     def collide_with_protagonist(self):
     285    def collide_with_protagonist(self, protagonist):
    286286        if self.puzzler.get_state():
    287287            # Reject the collision, we can walk through.
Note: See TracChangeset for help on using the changeset viewer.