def ch(locsOld, scenes, locsNew): loc = locations.Locations() loc.locations = locsOld loc.refresh(scenes) assert loc.locations == locsNew
def __init__(self, new_game_engine): super().__init__() self._game_engine = new_game_engine self.walls = Walls() self.location_collection = locations.Locations(self._game_engine, None) self.token_collection = [] self.city_level = 0
def run(): global locations_list parse_cmdline() logging.debug( "Output Headers: '{}'".format( pprint.pformat( output_headers ) ) ) if args.locations: locations_list = locations.Locations( args.locations ) events = process_datafile( args.datafile ) f = globals()[ 'print_'+ args.otype ]( events )
def __init__(self): self.jobs = JOBS.Jobs() self.current_day = None # TODO: Necessary? # self.opening_menu = MENU.OpeningMenu() #Character('random') creates charecter on start menu becasue #its an error. self.character = None self.locations = LOCATIONS.Locations() self.events = EVENTS.Events() self.notices = Notices()
def loadLocations(): # Load up all of the locations print "--------------------------" print "--- LOADING LOCATIONS ---" print "--------------------------" tempLocations = sql.getLocations() for l in tempLocations: location.locationStore[l["location_id"]] = location.Locations() location.locationStore[l["location_id"]].name = l["name"] location.locationStore[l["location_id"]].location_id = l["location_id"] location.locationStore[l["location_id"]].description = l["description"] location.locationStore[l["location_id"]].hasMonsters = l["hasMonsters"] location.locationStore[l["location_id"]].maxMonsterLevel = l["maxMonsterLevel"] location.locationStore[l["location_id"]].north = l["north"] location.locationStore[l["location_id"]].south = l["south"] location.locationStore[l["location_id"]].east = l["east"] location.locationStore[l["location_id"]].west = l["west"] location.locationStore[l["location_id"]].image = l["image"] print "--- Loaded location: " + l["name"]