Exemple #1
0
    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.
Exemple #3
0
 def __init__(self, session, character, targetloc):
     
     LS_midbehavior.__init__(self, session, character)
     self.targetloc=targetloc
     self.subtype="movetoloc"
Exemple #4
0
 def __init__(self, session, character):
     
     LS_midbehavior.__init__(self, session, character)
     self.target_loc = character.position
     self.subtype = "randomwalk"
Exemple #5
0
    def __init__(self, session, character):

        LS_midbehavior.__init__(self, session, character)
        self.target_loc = character.position
        self.subtype = "randomwalk"