예제 #1
0
 def set_from_message(self, msg):
     ObjectData.set_from_message(self, msg)
     self.set_range(msg.get_data('range'))
     self.set_power(msg.get_data('power'))
     self.set_player_oid(msg.get_data('player_oid'))
     self.set_hit_max_range(msg.get_data('hit_max_range'))
     return
예제 #2
0
 def set_message(self, msg):
     ObjectData.set_message(self, msg)
     msg.set_data('range', self.get_range())
     msg.set_data('power', self.get_power())
     msg.set_data('player_oid', self.get_player_oid())
     msg.set_data('hit_max_range', self.get_hit_max_range())
     return
예제 #3
0
 def __init__(self, x=0, y=0, w=0, h=0, player_oid=-1):
     ObjectData.__init__(self, x, y, w, h)
     self.range = 0.0  # distance to travel
     self.power = 0.0  # damage caused
     self.player_oid = player_oid # player that shot this missile
     self.hit_max_range = False # True if died because traveled maximum distance without hitting anything
     return
예제 #4
0
 def set_from_message(self, msg):
     ObjectData.set_from_message(self, msg)
     self.set_range(msg.get_data('range'))
     self.set_power(msg.get_data('power'))
     self.set_player_oid(msg.get_data('player_oid'))
     self.set_hit_max_range(msg.get_data('hit_max_range'))
     return
예제 #5
0
 def set_message(self, msg):
     ObjectData.set_message(self, msg)
     msg.set_data('range', self.get_range())
     msg.set_data('power', self.get_power())
     msg.set_data('player_oid', self.get_player_oid())
     msg.set_data('hit_max_range', self.get_hit_max_range())
     return
예제 #6
0
 def __init__(self, x=0, y=0, w=0, h=0, player_oid=-1):
     ObjectData.__init__(self, x, y, w, h)
     self.range = 0.0  # distance to travel
     self.power = 0.0  # damage caused
     self.player_oid = player_oid  # player that shot this missile
     self.hit_max_range = False  # True if died because traveled maximum distance without hitting anything
     return
예제 #7
0
 def __init__(self, x=0, y=0, w=0, h=0):
     ObjectData.__init__(self, x, y, w, h)
     self.experience = 0.0
     self.missile_range = 0.0
     self.missile_dx = 0.0
     self.missile_dy = 0.0
     self.missile_power = 0.0
     self.missile_mana = 0.0
     self.missile_mana_recharge_rate = 0.0
     self.missile_mana_max = 0.0
     self.move_mana = 0.0
     self.move_mana_recharge_rate = 0.0
     self.move_mana_max = 0.0
     return
예제 #8
0
 def set_from_message(self, msg):
     ObjectData.set_from_message(self, msg)
     self.set_experience(msg.get_data('experience'))
     self.set_missile_range(msg.get_data('missile_range'))
     self.set_missile_dx(msg.get_data('missile_dx'))
     self.set_missile_dy(msg.get_data('missile_dy'))
     self.set_missile_power(msg.get_data('missile_power'))
     self.set_missile_mana(msg.get_data('missile_mana'))
     self.set_missile_mana_recharge_rate(msg.get_data('missile_mana_recharge_rate'))
     self.set_missile_mana_max(msg.get_data('missile_mana_max'))
     self.set_move_mana(msg.get_data('move_mana'))
     self.set_move_mana_recharge_rate(msg.get_data('move_mana_recharge_rate'))
     self.set_move_mana_max(msg.get_data('move_mana_max'))
     return
예제 #9
0
 def set_message(self, msg):
     ObjectData.set_message(self, msg)
     msg.set_data('experience', self.get_experience())
     msg.set_data('missile_range', self.get_missile_range())
     msg.set_data('missile_dx', self.get_missile_dx())
     msg.set_data('missile_dy', self.get_missile_dy())
     msg.set_data('missile_power', self.get_missile_power())
     msg.set_data('missile_mana', self.get_missile_mana())
     msg.set_data('missile_mana_recharge_rate', self.get_missile_mana_recharge_rate())
     msg.set_data('missile_mana_max', self.get_missile_mana_max())
     msg.set_data('move_mana', self.get_move_mana())
     msg.set_data('move_mana_recharge_rate', self.get_move_mana_recharge_rate())
     msg.set_data('move_mana_max', self.get_move_mana_max())
     return
예제 #10
0
 def __init__(self, x=0, y=0, w=0, h=0):
     ObjectData.__init__(self, x, y, w, h)
     self.experience = 0.0
     self.missile_range = 0.0
     self.missile_dx = 0.0
     self.missile_dy = 0.0
     self.missile_power = 0.0
     self.missile_mana = 0.0
     self.missile_mana_recharge_rate = 0.0
     self.missile_mana_max = 0.0
     self.move_mana = 0.0
     self.move_mana_recharge_rate = 0.0
     self.move_mana_max = 0.0
     return
예제 #11
0
 def set_from_message(self, msg):
     ObjectData.set_from_message(self, msg)
     self.set_experience(msg.get_data('experience'))
     self.set_missile_range(msg.get_data('missile_range'))
     self.set_missile_dx(msg.get_data('missile_dx'))
     self.set_missile_dy(msg.get_data('missile_dy'))
     self.set_missile_power(msg.get_data('missile_power'))
     self.set_missile_mana(msg.get_data('missile_mana'))
     self.set_missile_mana_recharge_rate(
         msg.get_data('missile_mana_recharge_rate'))
     self.set_missile_mana_max(msg.get_data('missile_mana_max'))
     self.set_move_mana(msg.get_data('move_mana'))
     self.set_move_mana_recharge_rate(
         msg.get_data('move_mana_recharge_rate'))
     self.set_move_mana_max(msg.get_data('move_mana_max'))
     return
예제 #12
0
 def set_message(self, msg):
     ObjectData.set_message(self, msg)
     msg.set_data('experience', self.get_experience())
     msg.set_data('missile_range', self.get_missile_range())
     msg.set_data('missile_dx', self.get_missile_dx())
     msg.set_data('missile_dy', self.get_missile_dy())
     msg.set_data('missile_power', self.get_missile_power())
     msg.set_data('missile_mana', self.get_missile_mana())
     msg.set_data('missile_mana_recharge_rate',
                  self.get_missile_mana_recharge_rate())
     msg.set_data('missile_mana_max', self.get_missile_mana_max())
     msg.set_data('move_mana', self.get_move_mana())
     msg.set_data('move_mana_recharge_rate',
                  self.get_move_mana_recharge_rate())
     msg.set_data('move_mana_max', self.get_move_mana_max())
     return
예제 #13
0
 def __init__(self, x=0, y=0, w=0, h=0):
     ObjectData.__init__(self, x, y, w, h)
     return
예제 #14
0
 def __init__(self, x=0, y=0, w=0, h=0):
     ObjectData.__init__(self, x, y, w, h)
     return