Example #1
0
 def __init__(self, id, main=False, name=None, gender=None, title=None, home=None):
     self.id = id
     self.main = main
     if name is None:
         name = tools.generate_new_name()
     self.name = name.capitalize()
     if gender is None:
         gender = "undefine"
     self.gender = gender
     if title is None:
         title = "nobody"
     self.title = title
     if home is None:
         home = tools.generate_new_name()
     self.home = home.capitalize()
Example #2
0
 def __init__(self, name=None):
     self.id = "localhost"
     # Each world can actively contain several territories on one local machine
     if name is None:
         name = tools.generate_new_name()
     self.territories = []
     # Gates are connector to other worlds
     self.gates = []