def setUp(self):
     initialise_db()
     pg.init()
     self.battle = init_test_battle()
     self.plr = self.battle._plr
     self.curr = self.battle._gfx.party.sprites()[0]
     self.plr.current = self.curr
 def setUp(self):
     initialise_db()
     pg.init()
     self.demo = Demo()
     self.demo._eventhandler = StubEventHandler()
     self.demo._keys = self.demo._eventhandler.keys
     self.demo._clock = StubClock()
     self.demo._screen = pg.display.set_mode(NATIVE_RESOLUTION, pg.HIDDEN)
     self.demo._renderer = Renderer(self.demo._screen)
Exemple #3
0
    def __init__(self):
        '''Constructor for the Demo class.'''
        initialise_db()

        self._clock = pg.time.Clock()
        self._keys = Keys()
        self._eventhandler = EventHandler(self._keys)

        self._screen = initialise_demo_display()
        self._renderer = Renderer(self._screen)
        self._title_screen = TitleScreen(self._renderer)
        self._help_screen = HelpScreen(self._renderer)

        self._party = create_demo_party()

        self.battle = False
        self.title = False
        self.help = False
 def setUp(self):
     initialise_db()
     self.target = StubCharacter()
Exemple #5
0
 def setUp(self):
     initialise_db()
     pg.init()
     self.battle = init_test_battle()
 def setUp(self):
     initialise_db()
     pg.init()
     pg.display.set_mode(NATIVE_RESOLUTION, pg.HIDDEN)
 def setUp(self):
     initialise_db()
     pg.init()
     pg.display.set_mode(NATIVE_RESOLUTION, pg.HIDDEN)
     self.char = Character('bob')
     self.char.inventory = load_inventory('bob')
Exemple #8
0
 def setUp(self):
     initialise_db()
 def setUp(self):
     initialise_db()
     pg.init()
     pg.display.set_mode(NATIVE_RESOLUTION, pg.HIDDEN)
     self.char = Monster('bob')
     self.char._skills.pop('attack', None)
 def setUp(self):
     initialise_db()
     pg.init()
     pg.display.set_mode(NATIVE_RESOLUTION, pg.HIDDEN)
     self.char = PartyMember('bob')
 def setUp(self):
     initialise_db()
     pg.init()
     pg.display.set_mode((SCREEN_W, SCREEN_W), pg.HIDDEN)