Пример #1
0
 def _create_full_cell(self):
     cell = Cell(Serialiser('location'), False, True)
     cell.avatar = Serialiser('avatar')
     cell.pickup = Serialiser('pickup')
     self.expected = {
         'avatar': 'avatar',
         'generates_score': True,
         'habitable': False,
         'location': 'location',
         'pickup': 'pickup',
         'partially_fogged': False
     }
     return cell
Пример #2
0
 def get_cell(self, location):
     if location not in self._cell_cache:
         cell = Cell(location)
         cell.avatar = self._avatar
         self._cell_cache[location] = cell
     return self._cell_cache[location]
Пример #3
0
 def get_cell(self, location):
     if location not in self._cell_cache:
         cell = Cell(location)
         cell.avatar = self._avatar
         self._cell_cache[location] = cell
     return self._cell_cache[location]