コード例 #1
0
ファイル: test_places_logic.py プロジェクト: Alkalit/the-tale
    def setUp(self):
        super(PlacePowerTest, self).setUp()
        linguistics_logic.sync_static_restrictions()

        map_logic.create_test_my_info()

        places_storage.clear()
        persons_storage.clear()

        self.place = PlacePrototype.create(x=0,
                                           y=0,
                                           size=5,
                                           utg_name=names.generator.get_test_name(name='power_test_place'),
                                           race=RACE.HUMAN)

        self.place.sync_persons(force_add=True)

        persons_storage.sync(force=True)
コード例 #2
0
    def setUp(self):
        super(PlacePowerTest, self).setUp()
        linguistics_logic.sync_static_restrictions()

        map_logic.create_test_my_info()

        places_storage.clear()
        persons_storage.clear()

        self.place = PlacePrototype.create(
            x=0,
            y=0,
            size=5,
            utg_name=names.generator.get_test_name(name='power_test_place'),
            race=RACE.HUMAN)

        self.place.sync_persons(force_add=True)

        persons_storage.sync(force=True)
コード例 #3
0
ファイル: testcase.py プロジェクト: Alkalit/the-tale
def setUp(self):
    from the_tale.accounts.achievements.storage import achievements_storage
    from the_tale.collections.storage import collections_storage, kits_storage, items_storage
    from the_tale.linguistics.storage import game_dictionary, game_lexicon, restrictions_storage

    from the_tale.game.prototypes import GameState
    from the_tale.game.persons import storage as persons_storage
    from the_tale.game.mobs.storage import mobs_storage
    from the_tale.game.companions import storage as companions_storage
    from the_tale.game.artifacts.storage import artifacts_storage
    from the_tale.game.heroes import storage as heroes_storage
    from the_tale.game.map.storage import map_info_storage
    from the_tale.game.map.places.storage import places_storage, buildings_storage, resource_exchange_storage
    from the_tale.game.map.roads.storage import roads_storage, waymarks_storage

    settings.refresh(force=True)

    heroes_storage.position_descriptions.clear()

    places_storage.clear()
    buildings_storage.clear()
    persons_storage.persons_storage.clear()
    persons_storage.social_connections.clear()
    waymarks_storage.clear()
    roads_storage.clear()
    mobs_storage.clear()
    companions_storage.companions.clear()
    artifacts_storage.clear()
    map_info_storage.clear()
    resource_exchange_storage.clear()
    collections_storage.clear()
    kits_storage.clear()
    items_storage.clear()
    achievements_storage.clear()
    game_dictionary.clear()
    game_lexicon.clear()
    restrictions_storage.clear()

    GameState.start()
コード例 #4
0
def setUp(self):
    from the_tale.accounts.achievements.storage import achievements_storage
    from the_tale.collections.storage import collections_storage, kits_storage, items_storage
    from the_tale.linguistics.storage import game_dictionary, game_lexicon, restrictions_storage

    from the_tale.game.prototypes import GameState
    from the_tale.game.persons import storage as persons_storage
    from the_tale.game.mobs.storage import mobs_storage
    from the_tale.game.companions import storage as companions_storage
    from the_tale.game.artifacts.storage import artifacts_storage
    from the_tale.game.heroes import storage as heroes_storage
    from the_tale.game.map.storage import map_info_storage
    from the_tale.game.map.places.storage import places_storage, buildings_storage, resource_exchange_storage
    from the_tale.game.map.roads.storage import roads_storage, waymarks_storage

    settings.refresh(force=True)

    heroes_storage.position_descriptions.clear()

    places_storage.clear()
    buildings_storage.clear()
    persons_storage.persons_storage.clear()
    persons_storage.social_connections.clear()
    waymarks_storage.clear()
    roads_storage.clear()
    mobs_storage.clear()
    companions_storage.companions.clear()
    artifacts_storage.clear()
    map_info_storage.clear()
    resource_exchange_storage.clear()
    collections_storage.clear()
    kits_storage.clear()
    items_storage.clear()
    achievements_storage.clear()
    game_dictionary.clear()
    game_lexicon.clear()
    restrictions_storage.clear()

    GameState.start()