Exemplo n.º 1
0
 def _create_full_cell(self):
     cell = Cell(serializer("location"), False, False)
     cell.avatar = serializer("avatar")
     cell.interactable = serializer("interactable")
     self.expected = {
         "avatar": "avatar",
         "habitable": False,
         "location": "location",
         "interactable": "interactable",
         "partially_fogged": False,
     }
     return cell
Exemplo n.º 2
0
 def get_cell(self, location):
     default_cell = Cell(location)
     if location.x % 2 == 1:
         default_cell.interactable = ScoreLocation(default_cell)
     return self._cell_cache.setdefault(location, default_cell)
Exemplo n.º 3
0
 def get_cell(self, location):
     cell = Cell(location)
     cell.interactable = self._pickup
     return cell