def __init__(self, squareSize, isWall, x, y): MapObject.__init__(self, squareSize*x, squareSize*y) self.coord = Coordinates(x,y) self.isWall = isWall self.size = squareSize self.cameFrom = None self.shape = None
def __init__(self, x, y, speed, damage, enemy, ptype): MapObject.__init__(self, x, y) self.speed = speed self.damage = damage self.enemy = enemy self.ptype = ptype self.rotation = 0
def __init__(self,x,y,damage,trange,ttype): MapObject.__init__(self, x, y) self.damage = damage self.range = trange self.ttype = ttype self.rest = False self.firesAt = [] self.lines = []
def __init__(self,x,y,damage,trange,firerate,projSpeed,ttype): MapObject.__init__(self, x, y) self.ttype = ttype self.damage = damage self.firerate = firerate self.rest = False self.waitTime = 0 self.range = trange self.projSpeed = projSpeed
def __init__(self, x, y, speed, hp, gamemap, moveto, etype): MapObject.__init__(self, x, y) self.map = gamemap self.speed = speed self.maxHp = hp self.hp = hp self.etype = etype self.r = 0 self.dead = False self.goal = False self.moveTowards = moveto self.coord = None self.setCoordinates() self.getNext() self.direction = None self.getDirection()