Пример #1
0
 def __init__(self, monster_id, health_capacity):
     self._monster_id = monster_id
     self._health_capacity = health_capacity
     self._health = health_capacity
     self._pos = Pos()
     self._drop_item_list = list()
     self._hint_list = list()
Пример #2
0
 def __init__(self, healthCap, mob, posx, posy, index, game):
     self.MOBILITY = mob
     self.health = healthCap
     self.pos = Pos.Pos(posx, posy)
     self.index = index
     self.game = game
     self.myString = ""
     self.equipment = Weapon.Weapon(1, 1, 1)
Пример #3
0
 def __init__(self, posx, posy, index, game):
     self.__pos = Pos(posx, posy)
     self.__index = index
     self.__game = game
Пример #4
0
 def __init__(self):
     self._elixir_price = 1
     self._shield_price = 2
     self._pos = Pos()
Пример #5
0
 def __init__(self, posx, posy, index, game):
     self.pos = Pos.Pos(posx, posy)
     self.index = index
     self.game = game
Пример #6
0
 def __init__(self):
     self._health = 100
     self._num_elixirs = 2
     self._pos = Pos()
     self._keys = list()
Пример #7
0
def gen_challenge(seed, size):
    rand = seed
    p = Pos(seed, size)
    chal = p.gen_challenge().hashval
    chal = binascii.hexlify(chal)
    return (chal, p.path)