Ignore:
Timestamp:
Sep 6, 2013, 11:10:53 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Use Result instead of ClawEvent?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r393 r394  
    99    COLLISION_TYPE_FURNITURE, COLLISION_TYPE_WEREWOLF_ATTACK,
    1010    CMD_TOGGLE_FORM, CMD_ACTION)
    11 from nagslang.events import ScreenChange, DoorEvent, EnemyDeathEvent, ClawEvent
     11from nagslang.events import ScreenChange, DoorEvent, EnemyDeathEvent
    1212from nagslang.level import Level
    1313from nagslang.screens.base import Screen
    14 from nagslang.game_object import ClawAttack
    1514from nagslang.sound import sound
    1615
     
    180179        elif EnemyDeathEvent.matches(ev):
    181180            self.world.kills += 1
    182         elif ClawEvent.matches(ev):
    183             claw_attack = ClawAttack(self.space, ev.source, ev.vector,
    184                                      ev.damage)
    185             self._drawables.add(claw_attack)
    186181        self.keys.handle_event(ev)
    187182
Note: See TracChangeset for help on using the changeset viewer.