def make_boss_class(self): boss = MC.generate_class('..//start//boss.xml') return boss
def make_class2(self): for level in os.listdir("../levels"): if level[-4:] == '.xml' and level[:-4] == str(self.get_level()): current_level = MC.generate_class('..//levels//'+str(level)) return current_level
def make_level_class(self): current_level = MC.generate_class('..//levels//'+str(self.get_level())+'.xml') return current_level
def make_class(self): ''' uses mk_class from Q2API ''' current_user = MC.generate_class('..//start//current_user.xml') return current_user
__author__ = "THubbard" import Q2API.xml.mk_class as make make.generate_class("the_map")