def __init__(self, id):
     Item.__init__(self)
     self.x, self.y = None, None
     self.__id = id
     self.__name = "unamed%s"%id
     self.active = False
     self.registerEvent("character")
 def __init__(self, id):
     """ Weapon item constructor. """
     Item.__init__(self)
     self.__angle = None 
     self.__strength = None
     self.x, self.y = (None, 10)
     self.character_pos = {}
     self.active_character = None
     self.registerEvent("weapon")
     self.registerEvent("character")
 def __init__(self, id):
     """ Projectile itemp constructor. """
     Item.__init__(self)
     self.registerEvent("projectile")
     self.x, self.y = 10,10
     self.display = False
Beispiel #4
0
 def __init__(self, id):
     Item.__init__(self, id)
     self.registerEvent("log")
 def __init__(self, id):
     """ World item constructor. """
     Item.__init__(self)
     self.__buildings = []
     self.registerEvent("world")
 def __init__(self, id):
     """ World item constructor. """
     Item.__init__(self)
     self.__buildings = []
     self.registerEvent("world")
Beispiel #7
0
 def __init__(self, id):
     """ Projectile itemp constructor. """
     Item.__init__(self)
     self.registerEvent("projectile")
     self.x, self.y = 10, 10
     self.display = False
Beispiel #8
0
 def __init__(self, id):
     Item.__init__(self, id)
     self.registerEvent("log")