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