Пример #1
0
 def delete(self):
     if self.interact:
         cell.delete(self)
     Entity.entities.remove(self)
     if self.player:
         Entity.players.remove(self)
Пример #2
0
 def delete(self):
     if self.interact:
         cell.delete(self)
     Entity.entities.remove(self)
     if self.player:
         Entity.players.remove(self)
Пример #3
0
 def _move(self, pos):
     self.pos = pos
     cell.delete(self)
     cell.add(self)
Пример #4
0
 def _move(self, pos):
     self.pos = pos
     cell.delete(self)
     cell.add(self)