def addElemListB(self, x, y, direction, type): bullet = Bullet(self.config) bullet.setx(x) bullet.sety(y) bullet.setType(type) bullet.setDirection(direction) self.listB.append(bullet) return time.time_ns()