Beispiel #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
Beispiel #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)
Beispiel #3
0
 def get_cell(self, location):
     cell = Cell(location)
     cell.interactable = self._pickup
     return cell