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()
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)
def __init__(self, posx, posy, index, game): self.__pos = Pos(posx, posy) self.__index = index self.__game = game
def __init__(self): self._elixir_price = 1 self._shield_price = 2 self._pos = Pos()
def __init__(self, posx, posy, index, game): self.pos = Pos.Pos(posx, posy) self.index = index self.game = game
def __init__(self): self._health = 100 self._num_elixirs = 2 self._pos = Pos() self._keys = list()
def gen_challenge(seed, size): rand = seed p = Pos(seed, size) chal = p.gen_challenge().hashval chal = binascii.hexlify(chal) return (chal, p.path)