Ignore:
Timestamp:
09/03/13 14:58:45 (9 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
36616364363066663031393763616436626334636264353230353363646637376262616364306264
Message:

Add DoorEvent and tweak ScreenChange to keep more state when the player goes through a door

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/events.py

    r20 r180  
    3636class ScreenChange(UserEvent):
    3737    @classmethod
    38     def post(cls, new_screen):
    39         super(ScreenChange, cls).post(screen=new_screen)
     38    def post(cls, new_screen, player=None):
     39        super(ScreenChange, cls).post(screen=new_screen, player=player)
     40
     41
     42class DoorEvent(UserEvent):
     43    @classmethod
     44    def post(cls, destination, dest_pos):
     45        super(DoorEvent, cls).post(destination=destination, dest_pos=dest_pos)
Note: See TracChangeset for help on using the changeset viewer.