Oh yeah, we're using a AttrDict thing, aren't we?
[naja.git] / naja / widgets / tile.py
index cba4658e147b59558cba4e28709b9e0e77a359e2..4a88e121fb01dfeb688ec68c119e7e52b6a0595d 100644 (file)
@@ -8,9 +8,9 @@ from naja.widgets.base import Widget
 
 
 BIT_MAP = {
-        BITS['CYAN']: 'board/tile_cyan.png',
-        BITS['MAGENTA']: 'board/tile_magenta.png',
-        BITS['YELLOW']: 'board/tile_yellow.png',
+        BITS.CYAN: 'board/tile_cyan.png',
+        BITS.MAGENTA: 'board/tile_magenta.png',
+        BITS.YELLOW: 'board/tile_yellow.png',
         }
 
 
@@ -28,7 +28,7 @@ class TileWidget(Widget):
                           True, [(1, 1), (1, 95), (95, 95), (95, 1)], 2)
         self.surface.convert_alpha(pygame.display.get_surface())
         # Look up the required bits on the board location
-        card = self.state.gameboard.board_locations[self.board_pos]
+        card = self.state.board_locations[self.board_pos]
         bits = []
         for action in card.actions:
             if action.required_bits: