Changeset 91:5c31b4d1851c


Ignore:
Timestamp:
Sep 2, 2013, 6:36:46 AM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Remove NullPhysicser?, since it looks like everything needs PHYSICS!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r82 r91  
    3838    def render_angle(self):
    3939        raise NotImplementedError()
    40 
    41 
    42 class NullPhysicser(Physicser):
    43     def add_to_space(self, space):
    44         pass
    45 
    46     def remove_from_space(self, space):
    47         pass
    48 
    49     def render_position(self):
    50         return (0, 0)
    51 
    52     def render_angle(self):
    53         return 0
    5440
    5541
     
    123109    """
    124110
    125     def __init__(self, renderer, physicser=None, puzzler=None):
     111    def __init__(self, renderer, physicser, puzzler=None):
    126112        self.renderer = renderer
    127         if physicser is None:
    128             physicser = NullPhysicser()
    129113        self.physicser = physicser
    130114        self.puzzler = puzzler
Note: See TracChangeset for help on using the changeset viewer.