from data.states.main_menu import main_menu from data.states.town import town from data.states.castle import castle from data.states import shop from . import setup, tools from . import constants as c TOWN = 'town' MAIN_MENU = 'main menu' CASTLE = 'castle' INN = 'Inn' ARMOR_SHOP = 'armor shop' WEAPON_SHOP = 'weapon shop' MAGIC_SHOP = 'magic shop' POTION_SHOP = 'potion shop' def main(): """Add states to control here""" run_it = tools.Control(setup.ORIGINAL_CAPTION) state_dict = {TOWN: town.Town(), MAIN_MENU: main_menu.Menu(), CASTLE: castle.Castle(), INN: shop.Inn(), ARMOR_SHOP: shop.ArmorShop(), WEAPON_SHOP: shop.WeaponShop(), MAGIC_SHOP: shop.MagicShop(), POTION_SHOP: shop.PotionShop() } run_it.setup_states(state_dict, c.MAIN_MENU) run_it.main()