def delete(self): if self.interact: cell.delete(self) Entity.entities.remove(self) if self.player: Entity.players.remove(self)
def _move(self, pos): self.pos = pos cell.delete(self) cell.add(self)