Ignore:
Timestamp:
09/03/13 21:27:25 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
63623463393338663838326136643963333235663133626461393565376633313739626334343735
Message:

Break puzzlers out of game_object.py

File:
1 moved

Legend:

Unmodified
Added
Removed
  • nagslang/tests/test_puzzle.py

    r186 r201  
    22
    33from nagslang.constants import COLLISION_TYPE_OTHER, SWITCH_PUSHERS
    4 from nagslang import game_object
     4from nagslang import puzzle
    55
    66
     
    3030
    3131
    32 class FakePuzzler(game_object.Puzzler):
     32class FakePuzzler(puzzle.Puzzler):
    3333    def __init__(self, fake_state):
    3434        self.fake_state = fake_state
     
    4747        gobj = FakeGameObject(None, FakeSpace(*shapes))
    4848        puzzler = self.mkpuzzler(
    49             gobj, game_object.CollidePuzzler, *collision_types)
     49            gobj, puzzle.CollidePuzzler, *collision_types)
    5050        self.assertEqual(expected, puzzler.get_state())
    5151
     
    6161
    6262    def test_state_proxy_puzzler(self):
    63         glue = game_object.PuzzleGlue()
    64         puzzler = game_object.StateProxyPuzzler('faker')
     63        glue = puzzle.PuzzleGlue()
     64        puzzler = puzzle.StateProxyPuzzler('faker')
    6565        glue.add_component('puzzler', puzzler)
    6666        faker = FakePuzzler('foo')
     
    7272
    7373    def test_glue_add_component(self):
    74         glue = game_object.PuzzleGlue()
     74        glue = puzzle.PuzzleGlue()
    7575        puzzler = FakePuzzler('foo')
    7676        gobj = FakeGameObject(None, None)
Note: See TracChangeset for help on using the changeset viewer.