Exemplo n.º 1
0
 def __init__(self, size=2, tile=None):
     Body.__init__(self)
     
     self.size = size
     self.tile = resource.Tile.get(tile)
     
     self.occupied_cells = []        
Exemplo n.º 2
0
 def __init__(self, length, head_tile=None, tail_tile=None):
     Body.__init__(self)
     
     self.length = length
     self.head_tile = resource.Tile.get(head_tile)
     self.tail_tile = resource.Tile.get(tail_tile)
     
     self.occupied_cells = {}
Exemplo n.º 3
0
 def __init__(self, tile=None):
     Body.__init__(self)
     
     self.tile = resource.Tile.get(tile)