def getNewBot(x, y, image): if (x > Person.CONST_MAX_WH / 4 or y > Person.CONST_MAX_WH / 4): return None p = Character.Bot((x, y), image=image) p.setId(len(Person.person_list)) if (Walls.Walls.pushPerson(x, y, p)): Person.person_list.append(p) return p return None