def __init__(self, session, character, target_loc, avoid_arr, avoid_weights): #ideally this will be muti-type: a map coordinate or a character LS_midbehavior.__init__(self, session, character) self.target_loc = target_loc self.avoid_arr = avoid_arr self.avoid_weights = avoid_weights self.subtype = "scaredymove"
def __init__(self, session, character, target): #ideally this will be muti-type: a map coordinate or a character LS_midbehavior.__init__(self, session, character) self.target = target target_type = self.target.__class__.__name__ #"list", "LS_character", etc.
def __init__(self, session, character, targetloc): LS_midbehavior.__init__(self, session, character) self.targetloc=targetloc self.subtype="movetoloc"
def __init__(self, session, character): LS_midbehavior.__init__(self, session, character) self.target_loc = character.position self.subtype = "randomwalk"